[Bf-blender-cvs] [118251a2a86] blender2.8: GP: Add OPTYPE_USE_EVAL_DATA flag in paste to avoid undo crash
Antonioya
noreply at git.blender.org
Wed Aug 22 13:44:25 CEST 2018
Commit: 118251a2a86a6ba7e500827bbe7a7812ebf76007
Author: Antonioya
Date: Wed Aug 22 13:43:55 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB118251a2a86a6ba7e500827bbe7a7812ebf76007
GP: Add OPTYPE_USE_EVAL_DATA flag in paste to avoid undo crash
===================================================================
M source/blender/editors/gpencil/gpencil_edit.c
===================================================================
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", "");
More information about the Bf-blender-cvs
mailing list