[Bf-blender-cvs] [c6f47ffa98d] blender2.8: Fix T58117: Crash with keyframing
Sergey Sharybin
noreply at git.blender.org
Tue Dec 4 11:29:00 CET 2018
Commit: c6f47ffa98d3fe9c83b2e19b9310a133e842685b
Author: Sergey Sharybin
Date: Tue Dec 4 11:28:23 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBc6f47ffa98d3fe9c83b2e19b9310a133e842685b
Fix T58117: Crash with keyframing
===================================================================
M source/blender/editors/animation/keyframing.c
===================================================================
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c
index 4bf6c43e348..9faa7a8e8cd 100644
--- a/source/blender/editors/animation/keyframing.c
+++ b/source/blender/editors/animation/keyframing.c
@@ -1392,7 +1392,12 @@ static short clear_keyframe(Main *bmain, ReportList *reports, ID *id, bAction *a
/* return success */
ret++;
}
-
+ /* In the case last f-curve wes removed need to inform dependency graph
+ * about relations update, since it needs to get rid of animation operation
+ * for this datablock. */
+ if (adt->action == NULL) {
+ DEG_relations_tag_update(bmain);
+ }
/* return success/failure */
return ret;
}
More information about the Bf-blender-cvs
mailing list