[Bf-blender-cvs] [a21ae28f96f] soc-2019-openxr: Prepare Toggle VR Session operator to be enabled by an add-on
Julian Eisel
noreply at git.blender.org
Mon Aug 19 23:46:18 CEST 2019
Commit: a21ae28f96f213a4617bb51ea56c4d342e319ff7
Author: Julian Eisel
Date: Mon Aug 19 23:44:59 2019 +0200
Branches: soc-2019-openxr
https://developer.blender.org/rBa21ae28f96f213a4617bb51ea56c4d342e319ff7
Prepare Toggle VR Session operator to be enabled by an add-on
===================================================================
M release/scripts/startup/bl_ui/space_topbar.py
M source/blender/windowmanager/intern/wm_operators.c
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 43d5bae5fb3..f735e7b770f 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -555,14 +555,11 @@ class TOPBAR_MT_window(Menu):
if sys.platform[:3] == "win":
layout.separator()
layout.operator("wm.console_toggle", icon='CONSOLE')
- layout.separator()
if context.scene.render.use_multiview:
layout.separator()
layout.operator("wm.set_stereo_3d")
- # TODO WITH_OPENXR
- layout.operator("wm.xr_session_toggle")
class TOPBAR_MT_help(Menu):
bl_label = "Help"
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c
index 9c304b7ce81..9d46b37c0d7 100644
--- a/source/blender/windowmanager/intern/wm_operators.c
+++ b/source/blender/windowmanager/intern/wm_operators.c
@@ -3353,6 +3353,8 @@ static void WM_OT_xr_session_toggle(wmOperatorType *ot)
/* callbacks */
ot->exec = wm_xr_session_toggle_exec;
+
+ ot->flag = OPTYPE_INTERNAL;
}
#endif /* WITH_OPENXR */
More information about the Bf-blender-cvs
mailing list