[Bf-extensions-cvs] [790a56e8] xr-actions-D9124: VR: Hide controller gizmos for session mirror

Peter Kim noreply at git.blender.org
Fri Nov 13 17:41:07 CET 2020


Commit: 790a56e8c8b0f2ee7be0ce2fb90acc354d7c0331
Author: Peter Kim
Date:   Sat Nov 14 01:39:51 2020 +0900
Branches: xr-actions-D9124
https://developer.blender.org/rBA790a56e8c8b0f2ee7be0ce2fb90acc354d7c0331

VR: Hide controller gizmos for session mirror

Gizmo visualization is no longer necessary since controller draw
handler can now be displayed in the mirror viewport.

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

M	viewport_vr_preview.py

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

diff --git a/viewport_vr_preview.py b/viewport_vr_preview.py
index 563d044f..c0bf2863 100644
--- a/viewport_vr_preview.py
+++ b/viewport_vr_preview.py
@@ -1701,7 +1701,8 @@ class VIEW3D_GGT_vr_controller_poses(GizmoGroup):
         view3d = context.space_data
         return (
             view3d.shading.vr_show_controllers and
-            bpy.types.XrSessionState.is_running(context)
+            bpy.types.XrSessionState.is_running(context) and
+            not view3d.mirror_xr_session
         )
 
     @staticmethod



More information about the Bf-extensions-cvs mailing list