Fix T53420: Vertex Groups: The "-" button gets a hidden function

Guess 'remove all unlocked' is new-ish feature...

To be backported to 2.79a (I think).
This commit is contained in:
Bastien Montagne
2017-11-29 20:19:07 +01:00
parent 5ec8a9ac27
commit 9f1048481c

View File

@@ -206,7 +206,8 @@ class DATA_PT_vertex_groups(MeshButtonsPanel, Panel):
col = row.column(align=True) col = row.column(align=True)
col.operator("object.vertex_group_add", icon='ZOOMIN', text="") col.operator("object.vertex_group_add", icon='ZOOMIN', text="")
col.operator("object.vertex_group_remove", icon='ZOOMOUT', text="").all = False props = col.operator("object.vertex_group_remove", icon='ZOOMOUT', text="")
props.all_unlocked = props.all = False
col.menu("MESH_MT_vertex_group_specials", icon='DOWNARROW_HLT', text="") col.menu("MESH_MT_vertex_group_specials", icon='DOWNARROW_HLT', text="")
if group: if group:
col.separator() col.separator()