Fix T58117: Crash with keyframing

This commit is contained in:
Sergey Sharybin 2018-12-04 11:28:23 +01:00
parent 6330b715ef
commit c6f47ffa98
Notes: blender-bot 2023-02-14 10:04:50 +01:00
Referenced by issue #58117, Crash with keyframing
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}