Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 386 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| brush_settings(layout.column(), context, brush, popover=self.is_popover) | brush_settings(layout.column(), context, brush, popover=self.is_popover) | ||||
| class VIEW3D_PT_tools_brush_settings_advanced(Panel, View3DPaintBrushPanel): | class VIEW3D_PT_tools_brush_settings_advanced(Panel, View3DPaintBrushPanel): | ||||
| bl_context = ".paint_common" | bl_context = ".paint_common" | ||||
| bl_parent_id = "VIEW3D_PT_tools_brush_settings" | bl_parent_id = "VIEW3D_PT_tools_brush_settings" | ||||
| bl_label = "Advanced" | bl_label = "Advanced" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| bl_ui_units_x = 14 | |||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| layout.use_property_decorate = False # No animation. | layout.use_property_decorate = False # No animation. | ||||
| settings = UnifiedPaintPanel.paint_settings(context) | settings = UnifiedPaintPanel.paint_settings(context) | ||||
| ▲ Show 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | |||||
| # TODO, move to space_view3d.py | # TODO, move to space_view3d.py | ||||
| class VIEW3D_PT_tools_brush_display(Panel, View3DPaintBrushPanel, DisplayPanel): | class VIEW3D_PT_tools_brush_display(Panel, View3DPaintBrushPanel, DisplayPanel): | ||||
| bl_context = ".paint_common" | bl_context = ".paint_common" | ||||
| bl_parent_id = "VIEW3D_PT_tools_brush_settings" | bl_parent_id = "VIEW3D_PT_tools_brush_settings" | ||||
| bl_label = "Cursor" | bl_label = "Cursor" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| bl_ui_units_x = 12 | |||||
| # TODO, move to space_view3d.py | # TODO, move to space_view3d.py | ||||
| class VIEW3D_PT_tools_brush_texture(Panel, View3DPaintPanel): | class VIEW3D_PT_tools_brush_texture(Panel, View3DPaintPanel): | ||||
| bl_context = ".paint_common" | bl_context = ".paint_common" | ||||
| bl_parent_id = "VIEW3D_PT_tools_brush_settings" | bl_parent_id = "VIEW3D_PT_tools_brush_settings" | ||||
| bl_label = "Texture" | bl_label = "Texture" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| ▲ Show 20 Lines • Show All 762 Lines • ▼ Show 20 Lines | |||||
| class VIEW3D_PT_tools_grease_pencil_brush_advanced(View3DPanel, Panel): | class VIEW3D_PT_tools_grease_pencil_brush_advanced(View3DPanel, Panel): | ||||
| bl_context = ".greasepencil_paint" | bl_context = ".greasepencil_paint" | ||||
| bl_label = "Advanced" | bl_label = "Advanced" | ||||
| bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_settings' | bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_settings' | ||||
| bl_category = "Tool" | bl_category = "Tool" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| bl_ui_units_x = 11 | |||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| brush = context.tool_settings.gpencil_paint.brush | brush = context.tool_settings.gpencil_paint.brush | ||||
| return brush is not None and brush.gpencil_tool not in {'ERASE', 'TINT'} | return brush is not None and brush.gpencil_tool not in {'ERASE', 'TINT'} | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | |||||
| class VIEW3D_PT_tools_grease_pencil_brush_stroke(Panel, View3DPanel): | class VIEW3D_PT_tools_grease_pencil_brush_stroke(Panel, View3DPanel): | ||||
| bl_context = ".greasepencil_paint" | bl_context = ".greasepencil_paint" | ||||
| bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_settings' | bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_settings' | ||||
| bl_label = "Stroke" | bl_label = "Stroke" | ||||
| bl_category = "Tool" | bl_category = "Tool" | ||||
| bl_options = {'DEFAULT_CLOSED'} | bl_options = {'DEFAULT_CLOSED'} | ||||
| bl_ui_units_x = 12 | |||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| brush = context.tool_settings.gpencil_paint.brush | brush = context.tool_settings.gpencil_paint.brush | ||||
| return brush is not None and brush.gpencil_tool == 'DRAW' | return brush is not None and brush.gpencil_tool == 'DRAW' | ||||
| def draw(self, context): | def draw(self, context): | ||||
| layout = self.layout | layout = self.layout | ||||
| ▲ Show 20 Lines • Show All 660 Lines • ▼ Show 20 Lines | |||||
| # Grease Pencil Brush Appearance (one for each mode) | # Grease Pencil Brush Appearance (one for each mode) | ||||
| class VIEW3D_PT_tools_grease_pencil_paint_appearance(GreasePencilDisplayPanel, Panel, View3DPanel): | class VIEW3D_PT_tools_grease_pencil_paint_appearance(GreasePencilDisplayPanel, Panel, View3DPanel): | ||||
| bl_context = ".greasepencil_paint" | bl_context = ".greasepencil_paint" | ||||
| bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_settings' | bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_brush_settings' | ||||
| bl_label = "Cursor" | bl_label = "Cursor" | ||||
| bl_category = "Tool" | bl_category = "Tool" | ||||
| bl_ui_units_x = 15 | |||||
| class VIEW3D_PT_tools_grease_pencil_sculpt_appearance(GreasePencilDisplayPanel, Panel, View3DPanel): | class VIEW3D_PT_tools_grease_pencil_sculpt_appearance(GreasePencilDisplayPanel, Panel, View3DPanel): | ||||
| bl_context = ".greasepencil_sculpt" | bl_context = ".greasepencil_sculpt" | ||||
| bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_sculpt_settings' | bl_parent_id = 'VIEW3D_PT_tools_grease_pencil_sculpt_settings' | ||||
| bl_label = "Cursor" | bl_label = "Cursor" | ||||
| bl_category = "Tool" | bl_category = "Tool" | ||||
| ▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines | |||||