소스 검색

Merge pull request #93505 from TokageItLab/disable-cache-when-adding-animation

Make AnimationTrackCaches invalid when animation is added
Rémi Verschelde 1 년 전
부모
커밋
9de37ab680
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scene/animation/animation_mixer.cpp

+ 1 - 0
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) {