Skip to content
Snippets Groups Projects
Commit 7e9b4a48 authored by Florent Berthaut's avatar Florent Berthaut
Browse files

Merged with network fix

parents 3ee11875 46632d10
Branches
No related tags found
No related merge requests found
......@@ -74,12 +74,11 @@ var _ivmi_node = load("res://addons/ivmi-builder/core/IvmiNode.gd")
func _ready():
print("Creating IvmiScene")
_is_2D=true
match _xr_mode :
XRMode.OpenXr :
_is_2D = false
_xr_interface = XRServer.find_interface("OpenXR")
if _xr_interface and _xr_interface.initialize():
......@@ -87,6 +86,7 @@ func _ready():
DisplayServer.window_set_vsync_mode(DisplayServer.VSYNC_DISABLED)
get_viewport().use_xr = true
_xr_interface.play_area_changed.connect(_on_play_area_changed)
_is_2D = false
if _open_xr_passthrough :
get_viewport().transparent_bg=true
_xr_interface.start_passthrough()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment