diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-01 19:28:56 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-05-01 19:28:56 +0400 |
commit | a1cdccc3d8a82d7ec346e9efa33ff78c426a0820 (patch) | |
tree | 664057466d4ad17b703d53e7fb772afbec2faebe /release/scripts/startup/bl_ui/space_image.py | |
parent | 1701ebe5dcd1a2e40e9523e0388eb4acafe2ab1d (diff) |
Fix Show Brush button being missing from the UI for paint modes, the feature was
already implemented, it's in the Appearance panel now. Also added that panel to
the image editor now since it's relevant there too.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_image.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_image.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index e4c033d7223..352ae3d0f06 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -882,6 +882,35 @@ class IMAGE_PT_paint_curve(BrushButtonsPanel, Panel): row.operator("brush.curve_preset", icon='NOCURVE', text="").shape = 'MAX' +class IMAGE_PT_tools_brush_appearance(BrushButtonsPanel, Panel): + bl_label = "Appearance" + bl_options = {'DEFAULT_CLOSED'} + + def draw(self, context): + layout = self.layout + + toolsettings = context.tool_settings.image_paint + brush = toolsettings.brush + + if brush is None: # unlikely but can happen + layout.label(text="Brush Unset") + return + + col = layout.column() + col.prop(toolsettings, "show_brush"); + + col = col.column() + col.prop(brush, "cursor_color_add", text="") + col.active = toolsettings.show_brush + + layout.separator() + + col = layout.column(align=True) + col.prop(brush, "use_custom_icon") + if brush.use_custom_icon: + col.prop(brush, "icon_filepath", text="") + + class IMAGE_UV_sculpt_curve(Panel): bl_space_type = 'IMAGE_EDITOR' bl_region_type = 'UI' |