diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-25 10:01:54 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-25 10:01:54 +0200 |
commit | 9de37ab680496f512a2b0d124059c21de78ba6a3 (patch) | |
tree | 153e0e47bd8a0697277018f25bcaa5694ce22690 | |
parent | b071472fa2035256def755d44b326d9bae2e7492 (diff) | |
parent | e82ec1a8ce4c7bbc2614c9cc646caebdf3439abe (diff) | |
download | redot-engine-9de37ab680496f512a2b0d124059c21de78ba6a3.tar.gz |
Merge pull request #93505 from TokageItLab/disable-cache-when-adding-animation
Make AnimationTrackCaches invalid when animation is added
-rw-r--r-- | scene/animation/animation_mixer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/animation/animation_mixer.cpp b/scene/animation/animation_mixer.cpp index 1c4a5ff20e..c74348c2e7 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) { |