Skip to content

Commit

Permalink
update exiting code
Browse files Browse the repository at this point in the history
  • Loading branch information
lunarcloud committed Jan 23, 2023
1 parent 2b347fc commit 34aded3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions xr_or_flat_mode_singleton.gd
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ var _character_input_controller: ARVRController
# Setter for "current_mode", ensures XR Server event subscribing
func _on_mode_set(value):
if value == Mode.XR:
if ARVRServer.has_signal("openxr_session_exiting"):
# warning-ignore:return_value_discarded
ARVRServer.connect("openxr_session_exiting", self, "_on_xr_session_exiting")
var err = ARVRServer.connect("openxr_session_exiting", self, "_on_xr_session_exiting")
if not err:
print("Now handling the XR session exit signal")
current_mode = value

Expand Down

0 comments on commit 34aded3

Please sign in to comment.