[Bf-blender-cvs] [b77191c0354] blender2.8: UI: Fix Xray alpha slider being incorrectly greyed out

Clément Foucault noreply at git.blender.org
Mon Oct 1 18:57:27 CEST 2018


Commit: b77191c03548180f3df87e9360af8b4c1142be8e
Author: Clément Foucault
Date:   Mon Oct 1 18:56:16 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBb77191c03548180f3df87e9360af8b4c1142be8e

UI: Fix Xray alpha slider being incorrectly greyed out

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

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 a29ce803469..fc15e81717b 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -4141,14 +4141,15 @@ class VIEW3D_PT_shading_options(Panel):
 
         col = layout.column()
 
-        is_xray = shading.show_xray
         is_shadows = shading.show_shadows
 
         row = col.row()
-        row.active = is_xray
+
         if shading.type == 'WIREFRAME':
+            row.active = shading.show_xray_wireframe
             row.prop(shading, "xray_alpha_wireframe", text="X-Ray")
         else:
+            row.active = shading.show_xray
             row.prop(shading, "xray_alpha", text="X-Ray")
 
         if shading.type == 'SOLID':



More information about the Bf-blender-cvs mailing list