From 03474b0985e59d8f5b7497e123f0d0ca41cf69b2 Mon Sep 17 00:00:00 2001 From: Medhat Riad Date: Wed, 7 Dec 2022 10:31:48 +0100 Subject: [PATCH] Avoid error spamming in animation_tree when path is not found --- scene/animation/animation_tree.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index bd9b9189001..c2d584b52fc 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -1031,7 +1031,9 @@ void AnimationTree::_process_graph(double p_delta) { } NodePath path = a->track_get_path(i); - ERR_CONTINUE(!track_cache.has(path)); + if (!track_cache.has(path)) { + continue; // No path, but avoid error spamming. + } TrackCache *track = track_cache[path]; ERR_CONTINUE(!state.track_map.has(path));