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 2,061 Lines • ▼ Show 20 Lines | def draw(self, _context): | ||||
| 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("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): | |||||
| bl_label = "Angle Control" | |||||
| @classmethod | |||||
| def poll(cls, context): | |||||
| settings = UnifiedPaintPanel.paint_settings(context) | |||||
| if not settings: | |||||
| return False | |||||
| brush = settings.brush | |||||
| tex_slot = brush.texture_slot | |||||
| return tex_slot.has_texture_angle and tex_slot.has_texture_angle_source | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| settings = UnifiedPaintPanel.paint_settings(context) | |||||
| brush = settings.brush | |||||
| sculpt = (context.sculpt_object is not None) | |||||
| tex_slot = brush.texture_slot | |||||
| layout.prop(tex_slot, "use_rake", text="Rake") | |||||
| if brush.brush_capabilities.has_random_texture_angle and tex_slot.has_random_texture_angle: | |||||
| if sculpt: | |||||
| if brush.sculpt_capabilities.has_random_texture_angle: | |||||
| layout.prop(tex_slot, "use_random", text="Random") | |||||
| else: | |||||
| layout.prop(tex_slot, "use_random", text="Random") | |||||
| class VIEW3D_MT_mesh_add(Menu): | class VIEW3D_MT_mesh_add(Menu): | ||||
| bl_idname = "VIEW3D_MT_mesh_add" | bl_idname = "VIEW3D_MT_mesh_add" | ||||
| bl_label = "Mesh" | bl_label = "Mesh" | ||||
| def draw(self, _context): | def draw(self, _context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.operator_context = 'INVOKE_REGION_WIN' | layout.operator_context = 'INVOKE_REGION_WIN' | ||||
| ▲ Show 20 Lines • Show All 5,924 Lines • ▼ Show 20 Lines | classes = ( | ||||
| VIEW3D_MT_edit_lattice_context_menu, | VIEW3D_MT_edit_lattice_context_menu, | ||||
| VIEW3D_MT_select_edit_lattice, | VIEW3D_MT_select_edit_lattice, | ||||
| VIEW3D_MT_select_edit_armature, | VIEW3D_MT_select_edit_armature, | ||||
| VIEW3D_MT_select_gpencil, | VIEW3D_MT_select_gpencil, | ||||
| VIEW3D_MT_select_paint_mask, | VIEW3D_MT_select_paint_mask, | ||||
| VIEW3D_MT_select_paint_mask_vertex, | VIEW3D_MT_select_paint_mask_vertex, | ||||
| VIEW3D_MT_select_edit_curves, | VIEW3D_MT_select_edit_curves, | ||||
| VIEW3D_MT_select_sculpt_curves, | VIEW3D_MT_select_sculpt_curves, | ||||
| VIEW3D_MT_angle_control, | |||||
| VIEW3D_MT_mesh_add, | VIEW3D_MT_mesh_add, | ||||
| VIEW3D_MT_curve_add, | VIEW3D_MT_curve_add, | ||||
| VIEW3D_MT_surface_add, | VIEW3D_MT_surface_add, | ||||
| VIEW3D_MT_edit_metaball_context_menu, | VIEW3D_MT_edit_metaball_context_menu, | ||||
| VIEW3D_MT_metaball_add, | VIEW3D_MT_metaball_add, | ||||
| TOPBAR_MT_edit_curve_add, | TOPBAR_MT_edit_curve_add, | ||||
| TOPBAR_MT_edit_armature_add, | TOPBAR_MT_edit_armature_add, | ||||
| VIEW3D_MT_armature_add, | VIEW3D_MT_armature_add, | ||||
| ▲ Show 20 Lines • Show All 199 Lines • Show Last 20 Lines | |||||