From b77191c03548180f3df87e9360af8b4c1142be8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Mon, 1 Oct 2018 18:56:16 +0200 Subject: UI: Fix Xray alpha slider being incorrectly greyed out --- release/scripts/startup/bl_ui/space_view3d.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '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': -- cgit v1.2.3