diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-02-04 14:40:30 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-02-04 14:40:30 +0300 |
commit | cd0a02862404676622c96812fcd5b6ef20a2ec78 (patch) | |
tree | 4d06a02dd874a7677bd155ca7ffa7825cf29abd7 /source/blender/editors/gpencil/annotate_paint.c | |
parent | 5c8f8a74030c96e07a0ce719f37ed7958b6c3fb8 (diff) | |
parent | e35dab48955282cb86c31e563bd2f43f6b756cc6 (diff) |
Merge branch 'blender-v2.82-release'
Diffstat (limited to 'source/blender/editors/gpencil/annotate_paint.c')
-rw-r--r-- | source/blender/editors/gpencil/annotate_paint.c | 2 |
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 5eaf14e361b..f8eee8a8d39 100644 --- a/source/blender/editors/gpencil/annotate_paint.c +++ b/source/blender/editors/gpencil/annotate_paint.c @@ -2083,7 +2083,7 @@ static int gpencil_draw_modal(bContext *C, wmOperator *op, const wmEvent *event) * NOTE: cannot do RIGHTMOUSE (as is standard for canceling) * as that would break polyline T32647. */ - if (ELEM(event->type, RETKEY, PADENTER, ESCKEY, SPACEKEY, EKEY)) { + if (event->val == KM_PRESS && ELEM(event->type, RETKEY, PADENTER, ESCKEY, SPACEKEY, EKEY)) { /* exit() ends the current stroke before cleaning up */ /* printf("\t\tGP - end of paint op + end of stroke\n"); */ p->status = GP_STATUS_DONE; |