[Bf-blender-cvs] [3da9d365548] blender2.8: Fix T55709: Pose Library - Add New Pose crashes
Sybren A. Stüvel
noreply at git.blender.org
Tue Jul 3 16:50:35 CEST 2018
Commit: 3da9d365548f9652a0a15d304ca52cece8864c7e
Author: Sybren A. Stüvel
Date: Tue Jul 3 16:50:12 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB3da9d365548f9652a0a15d304ca52cece8864c7e
Fix T55709: Pose Library - Add New Pose crashes
===================================================================
M 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;
More information about the Bf-blender-cvs
mailing list