Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| if not brush: | if not brush: | ||||
| layout.label(text="No Brushes currently available", icon='INFO') | layout.label(text="No Brushes currently available", icon='INFO') | ||||
| return | return | ||||
| layout.operator("gpencil.brush_reset") | layout.operator("gpencil.brush_reset") | ||||
| layout.operator("gpencil.brush_reset_all") | layout.operator("gpencil.brush_reset_all") | ||||
| class VIEW3D_MT_brush_context_menu_paint_modes(Menu): | |||||
| bl_label = "Enabled Modes" | |||||
| def draw(self, context): | |||||
| layout = self.layout | |||||
| settings = UnifiedPaintPanel.paint_settings(context) | |||||
| brush = settings.brush | |||||
| layout.prop(brush, "use_paint_sculpt", text="Sculpt") | |||||
| layout.prop(brush, "use_paint_uv_sculpt", text="UV Sculpt") | |||||
| layout.prop(brush, "use_paint_vertex", text="Vertex Paint") | |||||
| layout.prop(brush, "use_paint_weight", text="Weight Paint") | |||||
| layout.prop(brush, "use_paint_image", text="Texture Paint") | |||||
| class View3DPanel: | class View3DPanel: | ||||
| bl_space_type = 'VIEW_3D' | bl_space_type = 'VIEW_3D' | ||||
| bl_region_type = 'UI' | bl_region_type = 'UI' | ||||
| # **************** standard tool clusters ****************** | # **************** standard tool clusters ****************** | ||||
| # Used by vertex & weight paint | # Used by vertex & weight paint | ||||
| ▲ Show 20 Lines • Show All 2,260 Lines • ▼ Show 20 Lines | class VIEW3D_PT_gpencil_brush_presets(Panel, PresetPanel): | ||||
| preset_subdir = "gpencil_brush" | preset_subdir = "gpencil_brush" | ||||
| preset_operator = "script.execute_preset" | preset_operator = "script.execute_preset" | ||||
| preset_add_operator = "scene.gpencil_brush_preset_add" | preset_add_operator = "scene.gpencil_brush_preset_add" | ||||
| classes = ( | classes = ( | ||||
| VIEW3D_MT_brush_context_menu, | VIEW3D_MT_brush_context_menu, | ||||
| VIEW3D_MT_brush_gpencil_context_menu, | VIEW3D_MT_brush_gpencil_context_menu, | ||||
| VIEW3D_MT_brush_context_menu_paint_modes, | |||||
| VIEW3D_PT_tools_object_options, | VIEW3D_PT_tools_object_options, | ||||
| VIEW3D_PT_tools_object_options_transform, | VIEW3D_PT_tools_object_options_transform, | ||||
| VIEW3D_PT_tools_meshedit_options, | VIEW3D_PT_tools_meshedit_options, | ||||
| VIEW3D_PT_tools_meshedit_options_automerge, | VIEW3D_PT_tools_meshedit_options_automerge, | ||||
| VIEW3D_PT_tools_armatureedit_options, | VIEW3D_PT_tools_armatureedit_options, | ||||
| VIEW3D_PT_tools_posemode_options, | VIEW3D_PT_tools_posemode_options, | ||||
| VIEW3D_PT_slots_projectpaint, | VIEW3D_PT_slots_projectpaint, | ||||
| ▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines | |||||