Fix missing show_weight from overlay UI
Missed when moving settings out of the mesh.
This commit is contained in:
parent
02dbe2dcfc
commit
dcc4b2cc25
|
@ -3585,6 +3585,7 @@ class VIEW3D_PT_overlay(Panel):
|
|||
view = context.space_data
|
||||
overlay = view.overlay
|
||||
scene = context.scene
|
||||
toolsettings = context.tool_settings
|
||||
display_all = overlay.show_overlays
|
||||
|
||||
col = layout.column()
|
||||
|
@ -3630,6 +3631,10 @@ class VIEW3D_PT_overlay(Panel):
|
|||
|
||||
col.prop(overlay, "show_occlude_wire")
|
||||
|
||||
col.prop(overlay, "show_weight")
|
||||
col.label("Show Zero Weights:")
|
||||
col.row().prop(toolsettings, "vertex_group_user", expand=True)
|
||||
|
||||
col.label(text="Normals:")
|
||||
row = col.row(align=True)
|
||||
|
||||
|
@ -3641,6 +3646,7 @@ class VIEW3D_PT_overlay(Panel):
|
|||
sub.active = overlay.show_vertex_normals or overlay.show_face_normals or overlay.show_split_normals
|
||||
sub.prop(overlay, "normals_length", text="Size")
|
||||
|
||||
|
||||
elif context.mode in {'PAINT_WEIGHT', 'PAINT_VERTEX', 'PAINT_TEXTURE'}:
|
||||
col.separator()
|
||||
col.label(text="Paint Mode:")
|
||||
|
@ -3776,8 +3782,6 @@ class VIEW3D_PT_view3d_meshdisplay(Panel):
|
|||
if with_freestyle:
|
||||
col.prop(mesh, "show_edge_seams", text="Seams")
|
||||
|
||||
layout.prop(mesh, "show_weight")
|
||||
|
||||
col = split.column()
|
||||
col.label()
|
||||
if not with_freestyle:
|
||||
|
|
|
@ -99,10 +99,6 @@ class VIEW3D_PT_tools_meshedit_options(View3DPanel, Panel):
|
|||
col.label("Double Threshold:")
|
||||
col.prop(tool_settings, "double_threshold", text="")
|
||||
|
||||
if mesh.show_weight:
|
||||
col.label("Show Zero Weights:")
|
||||
col.row().prop(tool_settings, "vertex_group_user", expand=True)
|
||||
|
||||
# ********** default tools for editmode_curve ****************
|
||||
|
||||
class VIEW3D_PT_tools_curveedit_options_stroke(View3DPanel, Panel):
|
||||
|
|
Loading…
Reference in New Issue