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 712 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| layout.template_header_3D_mode() | layout.template_header_3D_mode() | ||||
| # Contains buttons like Mode, Pivot, Layer, Mesh Select Mode... | # Contains buttons like Mode, Pivot, Layer, Mesh Select Mode... | ||||
| if obj: | if obj: | ||||
| # Particle edit | # Particle edit | ||||
| if object_mode == 'PARTICLE_EDIT': | if object_mode == 'PARTICLE_EDIT': | ||||
| row = layout.row() | row = layout.row() | ||||
| row.prop(tool_settings.particle_edit, "select_mode", text="", expand=True) | row.prop(tool_settings.particle_edit, "select_mode", text="", expand=True) | ||||
| elif object_mode == 'SCULPT_CURVES' and obj.type == 'CURVES': | elif object_mode in {'EDIT', 'SCULPT_CURVES'} and obj.type == 'CURVES': | ||||
| curves = obj.data | curves = obj.data | ||||
| row = layout.row(align=True) | row = layout.row(align=True) | ||||
| domain = curves.selection_domain | domain = curves.selection_domain | ||||
| row.operator( | row.operator( | ||||
| "curves.set_selection_domain", | "curves.set_selection_domain", | ||||
| text="", | text="", | ||||
| icon='CURVE_BEZCIRCLE', | icon='CURVE_BEZCIRCLE', | ||||
| ▲ Show 20 Lines • Show All 1,309 Lines • ▼ Show 20 Lines | def draw(self, _context): | ||||
| layout.operator("paint.vert_select_ungrouped", text="Ungrouped Vertices") | layout.operator("paint.vert_select_ungrouped", text="Ungrouped Vertices") | ||||
| class VIEW3D_MT_select_edit_curves(Menu): | class VIEW3D_MT_select_edit_curves(Menu): | ||||
| bl_label = "Select" | bl_label = "Select" | ||||
| def draw(self, _context): | def draw(self, _context): | ||||
| pass | layout = self.layout | ||||
| layout.operator("curves.select_all", text="All").action = 'SELECT' | |||||
| layout.operator("curves.select_all", text="None").action = 'DESELECT' | |||||
| layout.operator("curves.select_all", text="Invert").action = 'INVERT' | |||||
| layout.operator("curves.select_random", text="Random") | |||||
| layout.operator("curves.select_end", text="Endpoints") | |||||
| class VIEW3D_MT_select_sculpt_curves(Menu): | class VIEW3D_MT_select_sculpt_curves(Menu): | ||||
| bl_label = "Select" | bl_label = "Select" | ||||
| def draw(self, _context): | def draw(self, _context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.operator("curves.select_all", text="All").action = 'SELECT' | layout.operator("curves.select_all", text="All").action = 'SELECT' | ||||
| layout.operator("curves.select_all", text="None").action = 'DESELECT' | layout.operator("curves.select_all", text="None").action = 'DESELECT' | ||||
| layout.operator("curves.select_all", text="Invert").action = 'INVERT' | layout.operator("curves.select_all", text="Invert").action = 'INVERT' | ||||
| layout.operator("sculpt_curves.select_random", text="Random") | layout.operator("sculpt_curves.select_random", text="Random") | ||||
| layout.operator("sculpt_curves.select_end", text="Endpoints") | layout.operator("curves.select_end", text="Endpoints") | ||||
| layout.operator("sculpt_curves.select_grow", text="Grow") | layout.operator("sculpt_curves.select_grow", text="Grow") | ||||
| class VIEW3D_MT_angle_control(Menu): | class VIEW3D_MT_angle_control(Menu): | ||||
| bl_label = "Angle Control" | bl_label = "Angle Control" | ||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| ▲ Show 20 Lines • Show All 6,174 Lines • Show Last 20 Lines | |||||