diff options
author | Antonioya <blendergit@gmail.com> | 2018-08-22 14:43:55 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-08-22 14:44:17 +0300 |
commit | 118251a2a86a6ba7e500827bbe7a7812ebf76007 (patch) | |
tree | 1192fa82a2ec50519c652ea3e71e7e019d0f4776 /source/blender | |
parent | f64ec4ac84c467c1d5f2c25240127618f167c611 (diff) |
GP: Add OPTYPE_USE_EVAL_DATA flag in paste to avoid undo crash
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/gpencil/gpencil_edit.c b/source/blender/editors/gpencil/gpencil_edit.c index f7c08239647..91165731d82 100644 --- a/source/blender/editors/gpencil/gpencil_edit.c +++ b/source/blender/editors/gpencil/gpencil_edit.c @@ -1020,7 +1020,7 @@ void GPENCIL_OT_paste(wmOperatorType *ot) ot->poll = gp_strokes_paste_poll; /* flags */ - ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; + ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_USE_EVAL_DATA; /* properties */ ot->prop = RNA_def_enum(ot->srna, "type", copy_type, 0, "Type", ""); |