mirror of
https://github.com/godotengine/godot
synced 2024-07-19 20:26:19 +00:00
Merge pull request #93505 from TokageItLab/disable-cache-when-adding-animation
Make AnimationTrackCaches invalid when animation is added
This commit is contained in:
commit
9de37ab680
|
@ -150,6 +150,7 @@ void AnimationMixer::_animation_set_cache_update() {
|
||||||
ad.name = key;
|
ad.name = key;
|
||||||
ad.last_update = animation_set_update_pass;
|
ad.last_update = animation_set_update_pass;
|
||||||
animation_set.insert(ad.name, ad);
|
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 {
|
} else {
|
||||||
AnimationData &ad = animation_set[key];
|
AnimationData &ad = animation_set[key];
|
||||||
if (ad.last_update != animation_set_update_pass) {
|
if (ad.last_update != animation_set_update_pass) {
|
||||||
|
|
Loading…
Reference in a new issue