diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-09-30 00:21:50 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-10-01 20:13:19 +0300 |
commit | 8fbb6aa4ece9c65afbcd5c5e1aa8d58baaa825b3 (patch) | |
tree | 3414505cad1cc8a9ed8b4bde42d8f3cf66405802 /source/blender/editors/sculpt_paint/paint_stroke.c | |
parent | 8ef353fa5061f6c393ef3bc96e3e11ae74d8435f (diff) |
Paint: Ignore inbetween events for anchored strokes
When using anchored strokes, inbetween events are not needed since there
is no stroke path to be reconstructed. Handling the inbewteen events are
only producing unnecessary updates, creating performance issues.
Reviewed By: sergey, brecht
Differential Revision: https://developer.blender.org/D9053
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_stroke.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_stroke.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c index 0df2d60e54f..ac1e5564f20 100644 --- a/source/blender/editors/sculpt_paint/paint_stroke.c +++ b/source/blender/editors/sculpt_paint/paint_stroke.c @@ -257,6 +257,10 @@ static bool paint_stroke_use_scene_spacing(Brush *brush, ePaintMode mode) static bool paint_tool_require_inbetween_mouse_events(Brush *brush, ePaintMode mode) { + if (brush->flag & BRUSH_ANCHORED) { + return false; + } + switch (mode) { case PAINT_MODE_SCULPT: if (ELEM(brush->sculpt_tool, |