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 <eiseljulian@gmail.com>2020-03-16 16:12:08 +0300
committerJulian Eisel <eiseljulian@gmail.com>2020-03-16 16:12:08 +0300
commit1831c51d5f3d8c2b156a9492f167358ebbc5256f (patch)
tree3761fcf3162df499a6452ef4355231f87a96f43e
parent0dff79ca9c2402e5dd9331c57aeac4bb52200ce6 (diff)
Hide toggle for world space lighting for now + update to naming changes
-rw-r--r--viewport_vr_preview.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/viewport_vr_preview.py b/viewport_vr_preview.py
index 2bce884d..253472eb 100644
--- a/viewport_vr_preview.py
+++ b/viewport_vr_preview.py
@@ -298,8 +298,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.XrRuntimeSessionState.is_running(
- context)
+ is_session_running = bpy.types.XrSessionState.is_running(context)
# Using SNAP_FACE because it looks like a stop icon -- I shouldn't
# have commit rights...
@@ -409,7 +408,7 @@ class VIEW3D_PT_vr_session_shading_lighting(bpy.types.Panel):
session_settings = context.window_manager.xr_session_settings
shading = session_settings.shading
- View3DShadingLightingLayout.draw(context, shading, self.layout)
+ View3DShadingLightingLayout.draw(context, shading, self.layout, False)
class VIEW3D_PT_vr_session_shading_color(bpy.types.Panel):
@@ -544,7 +543,7 @@ class VIEW3D_GGT_vr_viewer(GizmoGroup):
view3d = context.space_data
return (
view3d.shading.vr_show_virtual_camera and
- bpy.types.XrRuntimeSessionState.is_running(context) and
+ bpy.types.XrSessionState.is_running(context) and
not view3d.mirror_xr_session
)