diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-12-04 13:28:23 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-12-04 13:28:54 +0300 |
commit | c6f47ffa98d3fe9c83b2e19b9310a133e842685b (patch) | |
tree | 6abc5056f19799cf8aa177f4ebebdd083e17bcfd /source/blender/editors/animation/keyframing.c | |
parent | 6330b715efd32ade93161c815c60e55cc816a7a9 (diff) |
Fix T58117: Crash with keyframing
Diffstat (limited to 'source/blender/editors/animation/keyframing.c')
-rw-r--r-- | source/blender/editors/animation/keyframing.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; } |