Fix wireframe threshold not active on wireframe mode

This commit is contained in:
Dalai Felinto 2018-09-28 12:05:25 -03:00
parent 0e7742d604
commit 8a06249058
1 changed files with 4 additions and 2 deletions

View File

@ -4360,14 +4360,16 @@ class VIEW3D_PT_overlay_geometry(Panel):
view = context.space_data
overlay = view.overlay
display_all = overlay.show_overlays
is_wireframes = view.shading.type == 'WIREFRAME'
col = layout.column()
col.active = display_all
row = col.row()
row.prop(overlay, "show_wireframes", text="")
if not is_wireframes:
row.prop(overlay, "show_wireframes", text="")
sub = row.row()
sub.active = overlay.show_wireframes
sub.active = overlay.show_wireframes or is_wireframes
sub.prop(overlay, "wireframe_threshold", text="Wireframe")
col = layout.column(align=True)