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
This commit is contained in:
Pablo Dobarro 2020-09-29 23:21:50 +02:00
parent 8ef353fa50
commit 8fbb6aa4ec
1 changed files with 4 additions and 0 deletions

View File

@ -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,