Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <julian@blender.org>2020-03-12 16:24:51 +0300
committerJulian Eisel <julian@blender.org>2020-03-12 16:24:51 +0300
commit911b4c0041b698c6f7d9fccc92c22c1088e37372 (patch)
treefbaa92d1f4b37d4303642e80aea4db49629ff9a1
parent3f13c42a84cca060f6aefd69f107921599b6bee3 (diff)
Update VR add-on for naming changes in Python API
-rw-r--r--viewport_vr_preview.py6
1 files changed, 3 insertions, 3 deletions
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