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:
authorAntonio Vazquez <blendergit@gmail.com>2020-02-04 14:40:30 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-02-04 14:40:30 +0300
commitcd0a02862404676622c96812fcd5b6ef20a2ec78 (patch)
tree4d06a02dd874a7677bd155ca7ffa7825cf29abd7 /source/blender/editors/gpencil/annotate_paint.c
parent5c8f8a74030c96e07a0ce719f37ed7958b6c3fb8 (diff)
parente35dab48955282cb86c31e563bd2f43f6b756cc6 (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.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 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;