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>2018-11-30 12:58:12 +0300
committerAntonioya <blendergit@gmail.com>2018-11-30 12:58:37 +0300
commitba4d920ab56766f858eb0c5ebc611696f9f233a1 (patch)
tree3369d44c90ceee9e132e9e433fd2d8551c386943 /source/blender/editors/gpencil/annotate_paint.c
parenta8c884c3ba288c45c9ebc0d5bb2bb9b7c7d17766 (diff)
Fix Alt key conflict in Annotation Eraser
There was a conflict when the Alt key was pressed while drawing and this makes eraser very difficult.
Diffstat (limited to 'source/blender/editors/gpencil/annotate_paint.c')
-rw-r--r--source/blender/editors/gpencil/annotate_paint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/annotate_paint.c b/source/blender/editors/gpencil/annotate_paint.c
index 7cfe066e68b..c7e6bb844c0 100644
--- a/source/blender/editors/gpencil/annotate_paint.c
+++ b/source/blender/editors/gpencil/annotate_paint.c
@@ -1759,7 +1759,7 @@ static void gpencil_draw_apply_event(wmOperator *op, const wmEvent *event, Depsg
}
/* 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 */