Merge pull request #68998 from hackenshaw/makhak/avoid_error_spamming_in_animation_tree

Avoid error spamming in animation_tree when path is not found
This commit is contained in:
Rémi Verschelde 2022-12-07 13:24:42 +01:00
commit cc6321dfbe
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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));