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/scripts/startup/bl_ui/space_view3d_toolbar.py
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/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py15
1 files changed, 10 insertions, 5 deletions
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")