diff options
author | Antonioya <blendergit@gmail.com> | 2019-07-06 14:10:51 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-07-06 14:10:51 +0300 |
commit | 6c1419d1f4f3328a42312b09eb5baa4483684cc8 (patch) | |
tree | e5b2e617b8c80b43b6aa72bff77e4a8701701a50 | |
parent | a0f3ea7da3f65333fbac9c2d528c4242c417860d (diff) |
GPencil: Don't add missing events for Eraser mode
This avoid some code that can delay the easer, but still some problems with the test file.
Related to T66501
-rw-r--r-- | source/blender/editors/gpencil/gpencil_paint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c index f6691f4813b..b49094c4fd6 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -3708,7 +3708,7 @@ static int gpencil_draw_modal(bContext *C, wmOperator *op, const wmEvent *event) /* handle drawing event */ /* printf("\t\tGP - add point\n"); */ - if (((p->flags & GP_PAINTFLAG_FIRSTRUN) == 0)) { + if (((p->flags & GP_PAINTFLAG_FIRSTRUN) == 0) && (p->paintmode != GP_PAINTMODE_ERASER)) { gpencil_add_missing_events(C, op, event, p); } |