From eff3828896bdb9537341ff158225b28bd84e4dc1 Mon Sep 17 00:00:00 2001 From: SaracenOne Date: Tue, 24 Jan 2023 04:18:12 +0000 Subject: [PATCH] Force update AnimationTree player cache when AnimationPlayer changes. --- scene/animation/animation_tree.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index 1c1f94c9866..fa72bbc5937 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -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(get_node_or_null(animation_player));