Make AnimationTrackCaches invalid when animation is added

This commit is contained in:
Silc Lizard (Tokage) Renew 2024-06-23 18:16:09 +09:00
parent 04bf7d4cad
commit e82ec1a8ce

View file

@ -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) {