From 6047653ec04efbc556506adad835cc83eb4c7dcf Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Thu, 2 May 2019 14:51:43 +0300 Subject: Fix T63904: Remove Animation should remove empty actions from objects. --- source/blender/editors/include/ED_anim_api.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/editors/include/ED_anim_api.h') diff --git a/source/blender/editors/include/ED_anim_api.h b/source/blender/editors/include/ED_anim_api.h index d314e9b4ca6..d947322f708 100644 --- a/source/blender/editors/include/ED_anim_api.h +++ b/source/blender/editors/include/ED_anim_api.h @@ -612,6 +612,9 @@ void ANIM_set_active_channel(bAnimContext *ac, * as appropriate according to animation context */ void ANIM_fcurve_delete_from_animdata(bAnimContext *ac, struct AnimData *adt, struct FCurve *fcu); +/* Unlink the action from animdata if it's empty. */ +bool ANIM_remove_empty_action_from_animdata(struct AnimData *adt); + /* ************************************************ */ /* DRAWING API */ /* anim_draw.c */ -- cgit v1.2.3