diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-07 13:24:42 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-07 13:24:42 +0100 |
commit | cc6321dfbeba4ef514131d1ed1afe45b8da7352f (patch) | |
tree | be2ce0356f19486b930ae76db17d6cdf515ed8ca | |
parent | df2b41f3b796837ca4a2d4d752b122f9ce2d9214 (diff) | |
parent | 03474b0985e59d8f5b7497e123f0d0ca41cf69b2 (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.cpp | 4 |
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)); |