[Bf-blender-cvs] [6c1419d1f4f] master: GPencil: Don't add missing events for Eraser mode
Antonioya
noreply at git.blender.org
Sat Jul 6 13:10:58 CEST 2019
Commit: 6c1419d1f4f3328a42312b09eb5baa4483684cc8
Author: Antonioya
Date: Sat Jul 6 13:10:51 2019 +0200
Branches: master
https://developer.blender.org/rB6c1419d1f4f3328a42312b09eb5baa4483684cc8
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
===================================================================
M source/blender/editors/gpencil/gpencil_paint.c
===================================================================
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);
}
More information about the Bf-blender-cvs
mailing list