Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-01 19:28:56 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-05-01 19:28:56 +0400
commita1cdccc3d8a82d7ec346e9efa33ff78c426a0820 (patch)
tree664057466d4ad17b703d53e7fb772afbec2faebe /release
parent1701ebe5dcd1a2e40e9523e0388eb4acafe2ab1d (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')
-rw-r--r--release/scripts/startup/bl_ui/space_image.py29
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py15
2 files changed, 39 insertions, 5 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'
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 2042dc148de..8edc65ef9e6 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1025,7 +1025,6 @@ class VIEW3D_PT_sculpt_options(Panel, View3DPaintPanel):
layout.prop(sculpt, "use_threaded", text="Threaded Sculpt")
layout.prop(sculpt, "show_low_resolution")
- layout.prop(sculpt, "show_brush")
layout.prop(sculpt, "use_deform_only")
layout.prop(sculpt, "show_diffuse_color")
@@ -1081,15 +1080,21 @@ class VIEW3D_PT_tools_brush_appearance(Panel, View3DPaintPanel):
return
col = layout.column()
+ col.prop(settings, "show_brush");
+
+ col = col.column()
+ col.active = settings.show_brush
if context.sculpt_object and context.tool_settings.sculpt:
if brush.sculpt_capabilities.has_secondary_color:
- col.prop(brush, "cursor_color_add", text="Add Color")
- col.prop(brush, "cursor_color_subtract", text="Subtract Color")
+ col.row().prop(brush, "cursor_color_add", text="Add")
+ col.row().prop(brush, "cursor_color_subtract", text="Subtract")
else:
- col.prop(brush, "cursor_color_add", text="Color")
+ col.prop(brush, "cursor_color_add", text="")
else:
- col.prop(brush, "cursor_color_add", text="Color")
+ col.prop(brush, "cursor_color_add", text="")
+
+ layout.separator()
col = layout.column(align=True)
col.prop(brush, "use_custom_icon")