summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-07 13:24:42 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-07 13:24:42 +0100
commitcc6321dfbeba4ef514131d1ed1afe45b8da7352f (patch)
treebe2ce0356f19486b930ae76db17d6cdf515ed8ca
parentdf2b41f3b796837ca4a2d4d752b122f9ce2d9214 (diff)
parent03474b0985e59d8f5b7497e123f0d0ca41cf69b2 (diff)
Merge pull request #68998 from hackenshaw/makhak/avoid_error_spamming_in_animation_tree
Avoid error spamming in animation_tree when path is not found
-rw-r--r--scene/animation/animation_tree.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp
index bd9b918900..c2d584b52f 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));