[Bf-blender-cvs] [dcf1f891ea1] blender2.8: UI: Fix error in shading popover

Clément Foucault noreply at git.blender.org
Tue Oct 2 12:20:45 CEST 2018


Commit: dcf1f891ea1d4eee6e0341de304ef802fc992836
Author: Clément Foucault
Date:   Tue Oct 2 12:26:39 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBdcf1f891ea1d4eee6e0341de304ef802fc992836

UI: Fix error in shading popover

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

M	release/scripts/startup/bl_ui/space_view3d.py

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

diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index fc15e81717b..05a009b9b19 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -4155,7 +4155,7 @@ class VIEW3D_PT_shading_options(Panel):
         if shading.type == 'SOLID':
             row = col.row()
             row.prop(shading, "show_shadows", text="")
-            row.active = not is_xray
+            row.active = not shading.show_xray
             sub = row.row(align=True)
             sub.active = is_shadows
             sub.prop(shading, "shadow_intensity", text="Shadow")
@@ -4167,7 +4167,7 @@ class VIEW3D_PT_shading_options(Panel):
 
             col = layout.column()
             row = col.row()
-            row.active = not is_xray
+            row.active = not shading.show_xray
             row.prop(shading, "show_cavity")
 
             if shading.show_cavity:



More information about the Bf-blender-cvs mailing list