From e82ec1a8ce4c7bbc2614c9cc646caebdf3439abe Mon Sep 17 00:00:00 2001 From: "Silc Lizard (Tokage) Renew" <61938263+TokageItLab@users.noreply.github.com> Date: Sun, 23 Jun 2024 18:16:09 +0900 Subject: [PATCH] Make AnimationTrackCaches invalid when animation is added --- scene/animation/animation_mixer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/animation/animation_mixer.cpp b/scene/animation/animation_mixer.cpp index 1c4a5ff20ea3..c74348c2e7b6 100644 --- a/scene/animation/animation_mixer.cpp +++ b/scene/animation/animation_mixer.cpp @@ -150,6 +150,7 @@ void AnimationMixer::_animation_set_cache_update() { ad.name = key; ad.last_update = animation_set_update_pass; animation_set.insert(ad.name, ad); + cache_valid = false; // No need to delete the cache, but it must be updated to add track caches. } else { AnimationData &ad = animation_set[key]; if (ad.last_update != animation_set_update_pass) {