UI: Gray out fade inactive geometry overlay slider when off

The slider should be inactive when the setting is turned off like
the wireframe slider.
This commit is contained in:
Hans Goudey 2020-09-19 23:11:58 -05:00
parent 56748dbbcd
commit 84653f015a
1 changed files with 2 additions and 0 deletions

View File

@ -6102,8 +6102,10 @@ class VIEW3D_PT_overlay_geometry(Panel):
col.prop(overlay, "show_face_orientation")
row = col.row(align=True)
row.prop(overlay, "show_fade_inactive", text="")
sub = row.row()
sub.active = overlay.show_fade_inactive
sub.prop(overlay, "fade_inactive_alpha", text="Fade Inactive Geometry")
# sub.prop(overlay, "show_onion_skins")