diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-05-02 14:51:43 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-05-02 14:56:25 +0300 |
commit | 6047653ec04efbc556506adad835cc83eb4c7dcf (patch) | |
tree | ed679c235fc8faa4379d2855a99037c0b0364259 /source/blender/editors/animation/keyframing.c | |
parent | 667af6cf411918ba181afc1a7d6bcb474f9fadb8 (diff) |
Fix T63904: Remove Animation should remove empty actions from objects.
Diffstat (limited to 'source/blender/editors/animation/keyframing.c')
-rw-r--r-- | source/blender/editors/animation/keyframing.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c index 9b2e1af55e4..a0433b49b16 100644 --- a/source/blender/editors/animation/keyframing.c +++ b/source/blender/editors/animation/keyframing.c @@ -2209,6 +2209,11 @@ static int clear_anim_v3d_exec(bContext *C, wmOperator *UNUSED(op)) changed = true; } } + + /* Delete the action itself if it is empty. */ + if (ANIM_remove_empty_action_from_animdata(adt)) { + changed = true; + } } } CTX_DATA_END; |