[Bf-extensions-cvs] [1831c51d] soc-2019-openxr: Hide toggle for world space lighting for now + update to naming changes

Julian Eisel noreply at git.blender.org
Mon Mar 16 14:12:41 CET 2020


Commit: 1831c51d5f3d8c2b156a9492f167358ebbc5256f
Author: Julian Eisel
Date:   Mon Mar 16 14:12:08 2020 +0100
Branches: soc-2019-openxr
https://developer.blender.org/rBA1831c51d5f3d8c2b156a9492f167358ebbc5256f

Hide toggle for world space lighting for now + update to naming changes

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

M	viewport_vr_preview.py

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

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
         )



More information about the Bf-extensions-cvs mailing list