[Bf-extensions-cvs] [602d716c] soc-2019-openxr: Show new VR view mirror option

Julian Eisel noreply at git.blender.org
Tue Mar 3 18:42:40 CET 2020


Commit: 602d716cd91de6e4b893fb2616518763d5ed48d4
Author: Julian Eisel
Date:   Tue Mar 3 18:42:03 2020 +0100
Branches: soc-2019-openxr
https://developer.blender.org/rBA602d716cd91de6e4b893fb2616518763d5ed48d4

Show new VR view mirror option

===================================================================

M	viewport_vr_preview.py

===================================================================

diff --git a/viewport_vr_preview.py b/viewport_vr_preview.py
index 186f517e..9de85886 100644
--- a/viewport_vr_preview.py
+++ b/viewport_vr_preview.py
@@ -412,6 +412,7 @@ class VIEW3D_PT_vr_feedback(bpy.types.Panel):
         view3d = context.space_data
 
         layout.prop(view3d.shading, "vr_show_virtual_camera")
+        layout.prop(view3d, "show_as_xr_session_mirror")
 
 
 class VIEW3D_GT_vr_camera_cone(Gizmo):
@@ -465,7 +466,7 @@ class VIEW3D_GGT_vr_viewer(GizmoGroup):
     @classmethod
     def poll(cls, context):
         view3d = context.space_data
-        return view3d.shading.vr_show_virtual_camera and bpy.types.XrSessionState.is_running(context)
+        return view3d.shading.vr_show_virtual_camera and bpy.types.XrSessionState.is_running(context) and not view3d.show_as_xr_session_mirror
 
     def _get_viewer_matrix(self, context):
         from mathutils import Matrix, Quaternion



More information about the Bf-extensions-cvs mailing list