Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 3,115 Lines • ▼ Show 20 Lines | |||||
| class VIEW3D_MT_paint_weight_lock(Menu): | class VIEW3D_MT_paint_weight_lock(Menu): | ||||
| bl_label = "Vertex Group Locks" | bl_label = "Vertex Group Locks" | ||||
| def draw(self, _context): | def draw(self, _context): | ||||
| layout = self.layout | layout = self.layout | ||||
| op = layout.operator("object.vertex_group_lock", icon='LOCKED', text="Lock All") | op = layout.operator("object.vertex_group_lock", icon='LOCKED', text="Lock All") | ||||
| op.action, op.mask = '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", text="Lock Selected") | ||||
| op = layout.operator("object.vertex_group_lock", icon='LOCKED', text="Lock Selected") | |||||
| op.action, op.mask = '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", text="Lock Unselected") | ||||
| op = layout.operator("object.vertex_group_lock", icon='LOCKED', text="Lock Unselected") | |||||
| op.action, op.mask = '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 = layout.operator("object.vertex_group_lock", text="Lock Only Selected") | ||||
| op.action, op.mask = 'LOCK', 'INVERT_UNSELECTED' | op.action, op.mask = 'LOCK', 'INVERT_UNSELECTED' | ||||
| op = layout.operator("object.vertex_group_lock", text="Lock Only Unselected") | op = layout.operator("object.vertex_group_lock", text="Lock Only Unselected") | ||||
| op.action, op.mask = 'UNLOCK', 'INVERT_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' | op.action, op.mask = 'INVERT', 'ALL' | ||||
| class VIEW3D_MT_paint_weight(Menu): | class VIEW3D_MT_paint_weight(Menu): | ||||
| bl_label = "Weights" | bl_label = "Weights" | ||||
| @staticmethod | @staticmethod | ||||
| def draw_generic(layout, is_editmode=False): | def draw_generic(layout, is_editmode=False): | ||||
| ▲ Show 20 Lines • Show All 5,019 Lines • Show Last 20 Lines | |||||