From 577376b61f696b2760a4761c9f705cd38d6ecafe Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 6 Apr 2024 14:00:16 +0200 Subject: [PATCH] Fix AnimationTree. --- scene/animation/animation_tree.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index dc951071c9..918c260095 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -949,11 +949,7 @@ void AnimationTree::_process_graph(float p_delta) { TrackCache **track_pp = track_cache.getptr(path); ERR_CONTINUE(!track_pp); - TrackCache *track = *track_pp; - if (track->type != a->track_get_type(i)) { - continue; //may happen should not - } track->root_motion = root_motion_track == path;