[Bf-blender-cvs] [8c01e71cdaf] blender2.8: GP: Fix ALT key conflict with Eraser
Antonioya
noreply at git.blender.org
Fri Nov 30 11:05:05 CET 2018
Commit: 8c01e71cdaf4d50816d2958d0a707229a1f06060
Author: Antonioya
Date: Fri Nov 30 11:05:00 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB8c01e71cdaf4d50816d2958d0a707229a1f06060
GP: Fix ALT key conflict with Eraser
===================================================================
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 f932e59c869..eb483f2db80 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -2604,7 +2604,7 @@ static void gpencil_draw_apply_event(bContext *C, wmOperator *op, const wmEvent
}
/* check if alt key is pressed and limit to straight lines */
- if (p->straight[0] != 0) {
+ if ((p->paintmode != GP_PAINTMODE_ERASER) && (p->straight[0] != 0)) {
if (p->straight[0] == 1) {
/* horizontal */
p->mval[1] = p->straight[1]; /* replace y */
More information about the Bf-blender-cvs
mailing list