From 3da9d365548f9652a0a15d304ca52cece8864c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 3 Jul 2018 16:50:12 +0200 Subject: Fix T55709: Pose Library - Add New Pose crashes --- source/blender/editors/animation/keyframing.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/animation/keyframing.c') diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index e234a3a131a..7f045fa477f 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -1107,7 +1107,12 @@ short insert_keyframe( } if (ret) { - DEG_id_tag_update(&adt->action->id, DEG_TAG_COPY_ON_WRITE); + if (act != NULL) { + DEG_id_tag_update(&act->id, DEG_TAG_COPY_ON_WRITE); + } + if (adt != NULL && adt->action != NULL && adt->action != act) { + DEG_id_tag_update(&adt->action->id, DEG_TAG_COPY_ON_WRITE); + } } return ret; -- cgit v1.2.3