[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [29721] branches/soc-2010-jwilkins/release /scripts/ui/space_view3d_toolbar.py: * Beginnings of using preview and icons to select brushes.
Jason Wilkins
Jason.A.Wilkins at gmail.com
Sat Jun 26 23:02:42 CEST 2010
Revision: 29721
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29721
Author: jwilkins
Date: 2010-06-26 23:02:42 +0200 (Sat, 26 Jun 2010)
Log Message:
-----------
* Beginnings of using preview and icons to select brushes.
Modified Paths:
--------------
branches/soc-2010-jwilkins/release/scripts/ui/space_view3d_toolbar.py
Modified: branches/soc-2010-jwilkins/release/scripts/ui/space_view3d_toolbar.py
===================================================================
--- branches/soc-2010-jwilkins/release/scripts/ui/space_view3d_toolbar.py 2010-06-26 20:00:45 UTC (rev 29720)
+++ branches/soc-2010-jwilkins/release/scripts/ui/space_view3d_toolbar.py 2010-06-26 21:02:42 UTC (rev 29721)
@@ -509,9 +509,11 @@
else:
defaultbrushes = 7
- row.template_list(settings, "brushes", settings, "active_brush_index", rows=2, maxrows=defaultbrushes)
+ #row.template_list(settings, "brushes", settings, "active_brush_index", rows=2, maxrows=defaultbrushes)
- col.template_ID(settings, "brush", new="brush.add")
+ #col.template_ID(settings, "brush", new="brush.add")
+ #col.template_ID_preview(brush, "texture", new="texture.new", rows=2, cols=4)
+ col.template_ID_preview(settings, "brush", new="brush.add", rows=5, cols=5)
# Particle Mode #
@@ -559,8 +561,8 @@
row = col.row(align=True)
row.prop(brush, "use_size_pressure", toggle=True, text="Size")
- if brush.sculpt_tool in ('SNAKE_HOOK', 'THUMB'):
- row.prop(brush, "use_strength_pressure", toggle=True, text="Strength")
+ if brush.sculpt_tool in ('SNAKE_HOOK', 'THUMB'):
+ row.prop(brush, "use_strength_pressure", toggle=True, text="Strength")
if brush.sculpt_tool not in ('GRAB', 'THUMB', 'SNAKE_HOOK', 'ROTATE'):
row.prop(brush, "use_size_pressure", toggle=True, text="")
More information about the Bf-blender-cvs
mailing list