Force update AnimationTree player cache when AnimationPlayer changes.

This commit is contained in:
SaracenOne 2023-01-24 04:18:12 +00:00
parent 5bcf016f11
commit eff3828896
1 changed files with 2 additions and 0 deletions

View File

@ -1861,6 +1861,8 @@ void AnimationTree::_setup_animation_player() {
return;
}
cache_valid = false;
AnimationPlayer *new_player = nullptr;
if (!animation_player.is_empty()) {
new_player = Object::cast_to<AnimationPlayer>(get_node_or_null(animation_player));