Hide Toggle VR Session menu entry when WITH_OPENXR is disabled

Would prefer to blacklist the add-on completely then, but that doesn't
seem to be supported currently.
This commit is contained in:
Julian Eisel 2019-08-20 00:56:18 +02:00
parent 4612e79c52
commit 031fdbe2c3
1 changed files with 8 additions and 8 deletions

View File

@ -26,19 +26,19 @@ bl_info = {
"version": (0, 0, 1),
"blender": (2, 81, 0),
"location": "Window > Toggle VR Session",
"description": ("Enable viewing the Blender viewport within virtual "
"reality glasses."),
"warning": "This is an early, limited preview of in development VR "
"support for Blender.",
"description": ("Enable viewing the Blender viewport within "
"virtual reality glasses."),
"support": "OFFICIAL",
"warning": "This is an early, limited preview of in development "
"VR support for Blender.",
"category": "3D View",
}
def window_menu_append_func(self, context):
self.layout.separator()
# TODO WITH_OPENXR
self.layout.operator("wm.xr_session_toggle")
if bpy.app.build_options.openxr:
self.layout.separator()
self.layout.operator("wm.xr_session_toggle")
classes = (