UI: Fix Xray alpha slider being incorrectly greyed out

This commit is contained in:
Clément Foucault 2018-10-01 18:56:16 +02:00
parent 8ed17c37c5
commit b77191c035
1 changed files with 3 additions and 2 deletions

View File

@ -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':