diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-03-07 02:54:44 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-03-07 02:54:44 +0400 |
commit | 65869589b6bc0caf9a08a10415a18dc563a447cf (patch) | |
tree | 3caa53de3471be33d642efe41c5913398bb8711f /source/blender/editors/sculpt_paint/paint_stroke.c | |
parent | 53b7bc8f1f7126600f431e63398a7678e643c8ae (diff) |
Support position jittering on new texpaint code using the stroke system.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_stroke.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_stroke.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c index a44702bd125..287bd723534 100644 --- a/source/blender/editors/sculpt_paint/paint_stroke.c +++ b/source/blender/editors/sculpt_paint/paint_stroke.c @@ -143,6 +143,7 @@ static void paint_brush_stroke_add_step(bContext *C, wmOperator *op, wmEvent *ev { Scene *scene = CTX_data_scene(C); Paint *paint = paint_get_active_from_context(C); + PaintMode mode = paintmode_get_active_from_context(C); Brush *brush = paint_brush(paint); PaintStroke *stroke = op->customdata; float mouse_out[2]; @@ -156,7 +157,7 @@ static void paint_brush_stroke_add_step(bContext *C, wmOperator *op, wmEvent *ev /* TODO: as sculpt and other paint modes are unified, this * separation will go away */ - if (stroke->vc.obact->sculpt) { + if (ELEM(mode, PAINT_SCULPT, PAINT_TEXTURE_PROJECTIVE)) { float delta[2]; BKE_brush_jitter_pos(scene, brush, mouse_in, mouse_out); |