UI: Sort items in Weight Locks menu
Reorder the items in the `Locks` menu: * Split into three groups: Lock, Unlock, Invert. * Use icon only in the first item of each group, following the HIG. Reviewed By: Severin Differential Revision: https://developer.blender.org/D16383
This commit is contained in:
parent
6ef6778215
commit
28e952dacd
@ -3121,21 +3121,33 @@ class VIEW3D_MT_paint_weight_lock(Menu):
|
||||
|
||||
op = layout.operator("object.vertex_group_lock", icon='LOCKED', text="Lock All")
|
||||
op.action, op.mask = 'LOCK', 'ALL'
|
||||
op = layout.operator("object.vertex_group_lock", icon='UNLOCKED', text="Unlock All")
|
||||
op.action, op.mask = 'UNLOCK', 'ALL'
|
||||
op = layout.operator("object.vertex_group_lock", icon='LOCKED', text="Lock Selected")
|
||||
|
||||
op = layout.operator("object.vertex_group_lock", text="Lock Selected")
|
||||
op.action, op.mask = 'LOCK', 'SELECTED'
|
||||
op = layout.operator("object.vertex_group_lock", icon='UNLOCKED', text="Unlock Selected")
|
||||
op.action, op.mask = 'UNLOCK', 'SELECTED'
|
||||
op = layout.operator("object.vertex_group_lock", icon='LOCKED', text="Lock Unselected")
|
||||
|
||||
op = layout.operator("object.vertex_group_lock", text="Lock Unselected")
|
||||
op.action, op.mask = 'LOCK', 'UNSELECTED'
|
||||
op = layout.operator("object.vertex_group_lock", icon='UNLOCKED', text="Unlock Unselected")
|
||||
op.action, op.mask = 'UNLOCK', 'UNSELECTED'
|
||||
|
||||
op = layout.operator("object.vertex_group_lock", text="Lock Only Selected")
|
||||
op.action, op.mask = 'LOCK', 'INVERT_UNSELECTED'
|
||||
|
||||
op = layout.operator("object.vertex_group_lock", text="Lock Only Unselected")
|
||||
op.action, op.mask = 'UNLOCK', 'INVERT_UNSELECTED'
|
||||
op = layout.operator("object.vertex_group_lock", text="Invert Locks")
|
||||
|
||||
layout.separator()
|
||||
|
||||
op = layout.operator("object.vertex_group_lock", icon='UNLOCKED', text="Unlock All")
|
||||
op.action, op.mask = 'UNLOCK', 'ALL'
|
||||
|
||||
op = layout.operator("object.vertex_group_lock", text="Unlock Selected")
|
||||
op.action, op.mask = 'UNLOCK', 'SELECTED'
|
||||
|
||||
op = layout.operator("object.vertex_group_lock", text="Unlock Unselected")
|
||||
op.action, op.mask = 'UNLOCK', 'UNSELECTED'
|
||||
|
||||
layout.separator()
|
||||
|
||||
op = layout.operator("object.vertex_group_lock", icon='ARROW_LEFTRIGHT', text="Invert Locks")
|
||||
op.action, op.mask = 'INVERT', 'ALL'
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user