[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [21048] branches/blender2.5/blender/source /blender/editors/sculpt_paint/sculpt.c: 2.5/Sculpt:
Nicholas Bishop
nicholasbishop at gmail.com
Sun Jun 21 05:34:31 CEST 2009
Revision: 21048
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21048
Author: nicholasbishop
Date: 2009-06-21 05:34:30 +0200 (Sun, 21 Jun 2009)
Log Message:
-----------
2.5/Sculpt:
Fix for the poll used for the operator to set the brush curve to a preset. The 3 brush curve presets in the Sculpt menu are now functional.
Modified Paths:
--------------
branches/blender2.5/blender/source/blender/editors/sculpt_paint/sculpt.c
Modified: branches/blender2.5/blender/source/blender/editors/sculpt_paint/sculpt.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/sculpt_paint/sculpt.c 2009-06-21 03:02:40 UTC (rev 21047)
+++ branches/blender2.5/blender/source/blender/editors/sculpt_paint/sculpt.c 2009-06-21 03:34:30 UTC (rev 21048)
@@ -1192,6 +1192,11 @@
}
#endif
+static int sculpt_mode_poll(bContext *C)
+{
+ return G.f & G_SCULPTMODE;
+}
+
static int sculpt_poll(bContext *C)
{
return G.f & G_SCULPTMODE && CTX_wm_area(C)->spacetype == SPACE_VIEW3D &&
@@ -1269,7 +1274,7 @@
ot->idname= "SCULPT_OT_brush_curve_preset";
ot->exec= sculpt_brush_curve_preset_exec;
- ot->poll= sculpt_poll;
+ ot->poll= sculpt_mode_poll;
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;
More information about the Bf-blender-cvs
mailing list