diff options
author | Ton Roosendaal <ton@blender.org> | 2011-03-01 19:26:37 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2011-03-01 19:26:37 +0300 |
commit | 32d87359e1e670cd47d3fb427f37de7217203785 (patch) | |
tree | aa53b09be122898ad5d460d437e58adbb81c01b7 /source/blender/editors/sculpt_paint/sculpt.c | |
parent | acd69b9c3ff944eb1a4bf75cf64a7b8d5add251e (diff) |
Bugfix #26249
Paint strokes now can be mapped to any key. The operators now store the
event it was started with, so it ends with a release. Even hotkeys work
(while hold).
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index bd2bb255809..62f180e9066 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -3501,7 +3501,7 @@ static int sculpt_brush_stroke_invoke(bContext *C, wmOperator *op, wmEvent *even stroke = paint_stroke_new(C, sculpt_stroke_get_location, sculpt_stroke_test_start, sculpt_stroke_update_step, - sculpt_stroke_done); + sculpt_stroke_done, event->type); op->customdata = stroke; @@ -3531,7 +3531,7 @@ static int sculpt_brush_stroke_exec(bContext *C, wmOperator *op) return OPERATOR_CANCELLED; op->customdata = paint_stroke_new(C, sculpt_stroke_get_location, sculpt_stroke_test_start, - sculpt_stroke_update_step, sculpt_stroke_done); + sculpt_stroke_update_step, sculpt_stroke_done, 0); sculpt_update_cache_invariants(C, sd, ss, op, NULL); |