Avoid error spamming in animation_tree when path is not found

This commit is contained in:
Medhat Riad 2022-12-07 10:31:48 +01:00
parent c241f1c523
commit 03474b0985

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