diff options
author | Antonioya <blendergit@gmail.com> | 2018-11-30 13:05:00 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-11-30 13:05:00 +0300 |
commit | 8c01e71cdaf4d50816d2958d0a707229a1f06060 (patch) | |
tree | 94b28a51cbc9960c99fcdb9dce4792b48e546e17 /source/blender/editors | |
parent | ba4d920ab56766f858eb0c5ebc611696f9f233a1 (diff) |
GP: Fix ALT key conflict with Eraser
Diffstat (limited to 'source/blender/editors')
-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 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 */ |