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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-10-01 19:56:16 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-10-01 19:56:26 +0300
commitb77191c03548180f3df87e9360af8b4c1142be8e (patch)
tree24bf30c5f5e64da0a26cb50a3eb19bc0cbeb1377 /release/scripts/startup/bl_ui/space_view3d.py
parent8ed17c37c5b0da5ddab8eca468b59ee22b119082 (diff)
UI: Fix Xray alpha slider being incorrectly greyed out
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py5
1 files changed, 3 insertions, 2 deletions
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':