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-06-21 07:34:30 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2009-06-21 07:34:30 +0400
commit64274de2fe8ef3b9a98a5cb3bd7d691fa1cee600 (patch)
tree4b6a1ecdc28a494a862481db0b85144d558e9326
parent984ab796298bac49ea7519ee7c4efbccabf3a35b (diff)
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.
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index fa33e214737..b61141ab62e 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -1192,6 +1192,11 @@ void sculptmode_draw_mesh(int only_damaged)
}
#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 @@ static void SCULPT_OT_brush_curve_preset(wmOperatorType *ot)
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;