Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_data_mesh.py
| Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | def draw(self, _context): | ||||
| "object.vertex_group_remove_from", | "object.vertex_group_remove_from", | ||||
| icon='X', | icon='X', | ||||
| text="Remove from All Groups", | text="Remove from All Groups", | ||||
| ).use_all_groups = True | ).use_all_groups = True | ||||
| layout.operator("object.vertex_group_remove_from", text="Clear Active Group").use_all_verts = True | layout.operator("object.vertex_group_remove_from", text="Clear Active Group").use_all_verts = True | ||||
| layout.operator("object.vertex_group_remove", text="Delete All Unlocked Groups").all_unlocked = True | layout.operator("object.vertex_group_remove", text="Delete All Unlocked Groups").all_unlocked = True | ||||
| layout.operator("object.vertex_group_remove", text="Delete All Groups").all = True | layout.operator("object.vertex_group_remove", text="Delete All Groups").all = True | ||||
| layout.separator() | layout.separator() | ||||
| layout.operator("object.vertex_group_lock", icon='LOCKED', text="Lock All").action = 'LOCK' | props = layout.operator("object.vertex_group_lock", icon='LOCKED', text="Lock All") | ||||
| layout.operator("object.vertex_group_lock", icon='UNLOCKED', text="UnLock All").action = 'UNLOCK' | props.action, props.mask = 'LOCK', 'ALL' | ||||
| layout.operator("object.vertex_group_lock", text="Lock Invert All").action = 'INVERT' | props = layout.operator("object.vertex_group_lock", icon='UNLOCKED', text="UnLock All") | ||||
| props.action, props.mask = 'UNLOCK', 'ALL' | |||||
| props = layout.operator("object.vertex_group_lock", text="Lock Invert All") | |||||
| props.action, props.mask = 'INVERT', 'ALL' | |||||
| class MESH_MT_shape_key_context_menu(Menu): | class MESH_MT_shape_key_context_menu(Menu): | ||||
| bl_label = "Shape Key Specials" | bl_label = "Shape Key Specials" | ||||
| def draw(self, _context): | def draw(self, _context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ▲ Show 20 Lines • Show All 485 Lines • Show Last 20 Lines | |||||