Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2019-07-06 14:10:51 +0300
committerAntonioya <blendergit@gmail.com>2019-07-06 14:10:51 +0300
commit6c1419d1f4f3328a42312b09eb5baa4483684cc8 (patch)
treee5b2e617b8c80b43b6aa72bff77e4a8701701a50 /source/blender/editors/gpencil/gpencil_paint.c
parenta0f3ea7da3f65333fbac9c2d528c4242c417860d (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
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_paint.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_paint.c2
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);
}