Skip to content

Commit fd590a2

Browse files
committed
Use legacy interface for getting the viewport
1 parent ea372bc commit fd590a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/semu.xr.openxr/semu/xr/openxr/openxr.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ def init(self, graphics: str = "OpenGL", use_ctypes: bool = False) -> bool:
223223
self._viewport_interface = omni.kit.viewport.get_viewport_interface()
224224
except Exception as e:
225225
print("[WARNING] omni.kit.viewport.get_viewport_interface:", e)
226+
print("[WARNING] Using legacy omni.kit.viewport_legacy.get_viewport_interface")
227+
self._viewport_interface = omni.kit.viewport_legacy.get_viewport_interface()
226228
return True
227229

228230
def destroy(self) -> bool:

0 commit comments

Comments
 (0)