summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMedhat Riad <medhat.riad@gmail.com>2022-12-07 10:31:48 +0100
committerMedhat Riad <medhat.riad@gmail.com>2022-12-07 10:36:12 +0100
commit03474b0985e59d8f5b7497e123f0d0ca41cf69b2 (patch)
treee08cf4ca6714ce67bdc7c544e8b1325d2f727be0
parentc241f1c52386b21cf2df936ee927740a06970db6 (diff)
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));