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
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2018-07-03 17:50:12 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2018-07-03 17:50:17 +0300
commit3da9d365548f9652a0a15d304ca52cece8864c7e (patch)
tree031822a6168bedf496878cf85c53395fe8cf689a /source/blender/editors/animation/keyframing.c
parentf14680b1bea4f8aeca3e21a327edc5647c78c3a7 (diff)
Fix T55709: Pose Library - Add New Pose crashes
Diffstat (limited to 'source/blender/editors/animation/keyframing.c')
-rw-r--r--source/blender/editors/animation/keyframing.c7
1 files changed, 6 insertions, 1 deletions
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;