Revision: 27482
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27482
Author:   dingto
Date:     2010-03-14 14:07:13 +0100 (Sun, 14 Mar 2010)

Log Message:
-----------
Fixing a part of [#21516]. Curve preset menu doesn't appear to be a menu.
Converted to Operator Buttons. Fits well into the toolbar, lets hope, we won't 
get more presets. ;)

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_view3d_toolbar.py

Modified: trunk/blender/release/scripts/ui/space_view3d_toolbar.py
===================================================================
--- trunk/blender/release/scripts/ui/space_view3d_toolbar.py    2010-03-14 
13:05:42 UTC (rev 27481)
+++ trunk/blender/release/scripts/ui/space_view3d_toolbar.py    2010-03-14 
13:07:13 UTC (rev 27482)
@@ -745,7 +745,11 @@
         brush = settings.brush
 
         layout.template_curve_mapping(brush, "curve", brush=True)
-        layout.operator_menu_enum("brush.curve_preset", property="shape")
+        
+        row = layout.row(align=True)
+        row.operator("brush.curve_preset", text="Sharp").shape = 'SHARP'
+        row.operator("brush.curve_preset", text="Smooth").shape = 'SMOOTH'
+        row.operator("brush.curve_preset", text="Max").shape = 'MAX'
 
 
 class VIEW3D_PT_sculpt_options(PaintPanel):


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to