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:
authorNicholas Bishop <nicholasbishop@gmail.com>2009-08-16 23:50:00 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2009-08-16 23:50:00 +0400
commitafa0fa5e29de94b093f4eda2f8105faa59ba5573 (patch)
treec7fa9cf5336e472ac10a95e78a2ac179ee0d97fd /release
parentd5c990664e421567f45df7c6148cc5786aa2dbd7 (diff)
2.5 Sculpt:
* Added a new Paint type in scene DNA. This is now the base struct for Sculpt. * The Paint type contains a list of Brushes, you can add or remove these much like material and texture slots. * Modified the UI for the new Paint type, now shows the list of brushes active for this mode * Added a New Brush operator, shows in the UI as a list of brush tool types to add * Made the sculpt tool property UI smaller and not expanded, expectation is that we will have a number of preset brushes that will cover the basic sculpt brush types TODO: * Vertex paint, weight paint, texture paint need to be converted to this system next * Add brush presets to the default blend
Diffstat (limited to 'release')
-rw-r--r--release/ui/space_view3d_toolbar.py24
1 files changed, 18 insertions, 6 deletions
diff --git a/release/ui/space_view3d_toolbar.py b/release/ui/space_view3d_toolbar.py
index 20e69a832ad..f945a422b54 100644
--- a/release/ui/space_view3d_toolbar.py
+++ b/release/ui/space_view3d_toolbar.py
@@ -292,10 +292,22 @@ class VIEW3D_PT_tools_brush(PaintPanel):
settings = self.paint_settings(context)
brush = settings.brush
-
+
if not context.particle_edit_object:
- layout.split().row().template_ID(settings, "brush")
-
+ col = layout.split().column()
+ if context.sculpt_object:
+ row = col.row()
+ row.template_list(settings, "brushes", settings, "active_brush_index", rows=2)
+
+ sub_col = row.column(align=True)
+ sub_col.itemO("paint.brush_slot_add", icon="ICON_ZOOMIN", text="")
+ sub_col.itemO("paint.brush_slot_remove", icon="ICON_ZOOMOUT", text="")
+
+ col.template_ID(settings, "brush")
+
+ if(context.sculpt_object):
+ col.item_menu_enumO("brush.new", "sculpt_tool");
+
# Particle Mode #
# XXX This needs a check if psys is editable.
@@ -323,9 +335,7 @@ class VIEW3D_PT_tools_brush(PaintPanel):
# Sculpt Mode #
- elif context.sculpt_object:
- layout.column().itemR(brush, "sculpt_tool", expand=True)
-
+ elif context.sculpt_object and settings.brush:
col = layout.column()
row = col.row(align=True)
@@ -348,6 +358,8 @@ class VIEW3D_PT_tools_brush(PaintPanel):
if brush.sculpt_tool == 'LAYER':
col.itemR(brush, "persistent")
col.itemO("sculpt.set_persistent_base")
+
+ col.itemR(brush, "sculpt_tool")
# Texture Paint Mode #