[Bf-extensions-cvs] [911b4c00] soc-2019-openxr: Update VR add-on for naming changes in Python API
Julian Eisel
noreply at git.blender.org
Thu Mar 12 14:25:29 CET 2020
Commit: 911b4c0041b698c6f7d9fccc92c22c1088e37372
Author: Julian Eisel
Date: Thu Mar 12 14:24:51 2020 +0100
Branches: soc-2019-openxr
https://developer.blender.org/rBA911b4c0041b698c6f7d9fccc92c22c1088e37372
Update VR add-on for naming changes in Python API
===================================================================
M viewport_vr_preview.py
===================================================================
diff --git a/viewport_vr_preview.py b/viewport_vr_preview.py
index e328a1fe..efeafd9f 100644
--- a/viewport_vr_preview.py
+++ b/viewport_vr_preview.py
@@ -254,7 +254,7 @@ class VIEW3D_PT_vr_session(bpy.types.Panel):
layout.use_property_split = True
layout.use_property_decorate = False # No animation.
- is_session_running = bpy.types.XrSessionState.is_running(context)
+ is_session_running = bpy.types.XrRuntimeSessionState.is_running(context)
# Using SNAP_FACE because it looks like a stop icon -- I shouldn't have commit rights...
toggle_info = ("Start VR Session", 'PLAY') if not is_session_running else (
@@ -412,7 +412,7 @@ class VIEW3D_PT_vr_viewport_feedback(bpy.types.Panel):
view3d = context.space_data
layout.prop(view3d.shading, "vr_show_virtual_camera")
- layout.prop(view3d, "show_as_xr_session_mirror")
+ layout.prop(view3d, "mirror_xr_session")
class VIEW3D_GT_vr_camera_cone(Gizmo):
@@ -466,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) and not view3d.show_as_xr_session_mirror
+ return view3d.shading.vr_show_virtual_camera and bpy.types.XrRuntimeSessionState.is_running(context) and not view3d.mirror_xr_session
def _get_viewer_matrix(self, context):
from mathutils import Matrix, Quaternion
More information about the Bf-extensions-cvs
mailing list