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
path: root/source
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2020-02-04 14:39:44 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-02-04 14:40:05 +0300
commite35dab48955282cb86c31e563bd2f43f6b756cc6 (patch)
tree683ae2f3f602b499293a9e081e5cd0ac460de491 /source
parent3dde6360ff6ae002002472f7b5a155e3d119230f (diff)
Fix T57866: Annotation not working using Search and Enter key
Thanks to @mano-wii for the fix
Diffstat (limited to 'source')
-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 04b5d8f6d40..0594a77c2d9 100644
--- a/source/blender/editors/gpencil/annotate_paint.c
+++ b/source/blender/editors/gpencil/annotate_paint.c
@@ -2098,7 +2098,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;