diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-10 00:33:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-10 00:33:35 +0400 |
commit | 3ddbc3869d4fba5ca911117ca591826cc61adac1 (patch) | |
tree | df7d9b57cfec70832211fe7eb4f81e01f59271d7 /source/blender/editors/gpencil/gpencil_paint.c | |
parent | 4262bd2906dca0c7c8a3eec189e0abd817df6b01 (diff) |
fix [#28197] Undoing Grease pencil removes last 2 strokes
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_paint.c')
-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 28a54b20277..93963b3f7ed 100644 --- a/source/blender/editors/gpencil/gpencil_paint.c +++ b/source/blender/editors/gpencil/gpencil_paint.c @@ -1722,7 +1722,7 @@ static int gpencil_draw_modal (bContext *C, wmOperator *op, wmEvent *event) /* standard undo/redo shouldn't be allowed to execute or else it causes crashes, so catch it here */ // FIXME: this is a hardcoded hotkey that can't be changed // TODO: catch redo as well, but how? - if (event->type == ZKEY) { + if (event->type == ZKEY && event->val == KM_RELEASE) { /* oskey = cmd key on macs as they seem to use cmd-z for undo as well? */ if ((event->ctrl) || (event->oskey)) { /* just delete last stroke, which will look like undo to the end user */ |