Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d.py
| Show First 20 Lines • Show All 2,892 Lines • ▼ Show 20 Lines | def draw(self, _context): | ||||
| layout.separator() | layout.separator() | ||||
| props = layout.operator("mesh.paint_mask_extract", text="Mask Extract") | props = layout.operator("mesh.paint_mask_extract", text="Mask Extract") | ||||
| layout.separator() | layout.separator() | ||||
| props = layout.operator("sculpt.dirty_mask", text='Dirty Mask') | props = layout.operator("sculpt.dirty_mask", text='Dirty Mask') | ||||
| layout.separator() | |||||
| layout.menu("VIEW3D_MT_sculpt_set_pivot", text="Set Pivot") | |||||
| class VIEW3D_MT_sculpt_set_pivot(Menu): | |||||
| bl_label = "Sculpt Set Pivot" | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| props = layout.operator("sculpt.set_pivot_position", text="Pivot to Origin") | |||||
| props.mode = 'ORIGIN' | |||||
| props = layout.operator("sculpt.set_pivot_position", text="Pivot to Unmasked") | |||||
| props.mode = 'UNMASKED' | |||||
| props = layout.operator("sculpt.set_pivot_position", text="Pivot to Mask Border") | |||||
| props.mode = 'BORDER' | |||||
| props = layout.operator("sculpt.set_pivot_position", text="Pivot to Active Vertex") | |||||
| props.mode = 'ACTIVE' | |||||
| props = layout.operator("sculpt.set_pivot_position", text="Pivot to Surface Under Cursor") | |||||
capnm: How is this supposed to work? | |||||
| props.mode = 'SURFACE' | |||||
| class VIEW3D_MT_particle(Menu): | class VIEW3D_MT_particle(Menu): | ||||
| bl_label = "Particle" | bl_label = "Particle" | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| tool_settings = context.tool_settings | tool_settings = context.tool_settings | ||||
| ▲ Show 20 Lines • Show All 3,868 Lines • ▼ Show 20 Lines | classes = ( | ||||
| VIEW3D_MT_make_links, | VIEW3D_MT_make_links, | ||||
| VIEW3D_MT_brush_paint_modes, | VIEW3D_MT_brush_paint_modes, | ||||
| VIEW3D_MT_paint_vertex, | VIEW3D_MT_paint_vertex, | ||||
| VIEW3D_MT_hook, | VIEW3D_MT_hook, | ||||
| VIEW3D_MT_vertex_group, | VIEW3D_MT_vertex_group, | ||||
| VIEW3D_MT_gpencil_vertex_group, | VIEW3D_MT_gpencil_vertex_group, | ||||
| VIEW3D_MT_paint_weight, | VIEW3D_MT_paint_weight, | ||||
| VIEW3D_MT_sculpt, | VIEW3D_MT_sculpt, | ||||
| VIEW3D_MT_sculpt_set_pivot, | |||||
| VIEW3D_MT_particle, | VIEW3D_MT_particle, | ||||
| VIEW3D_MT_particle_context_menu, | VIEW3D_MT_particle_context_menu, | ||||
| VIEW3D_MT_particle_showhide, | VIEW3D_MT_particle_showhide, | ||||
| VIEW3D_MT_pose, | VIEW3D_MT_pose, | ||||
| VIEW3D_MT_pose_transform, | VIEW3D_MT_pose_transform, | ||||
| VIEW3D_MT_pose_slide, | VIEW3D_MT_pose_slide, | ||||
| VIEW3D_MT_pose_propagate, | VIEW3D_MT_pose_propagate, | ||||
| VIEW3D_MT_pose_library, | VIEW3D_MT_pose_library, | ||||
| ▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines | |||||
How is this supposed to work?