1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Fix error spam when tweened node leaves tree

(cherry picked from commit 45e4cb2bbf)
This commit is contained in:
kobewi
2022-05-05 17:57:25 +02:00
committed by Rémi Verschelde
parent 4cfe174263
commit 93482809e5

View File

@@ -332,7 +332,7 @@ bool SceneTreeTween::can_process(bool p_tree_paused) const {
if (is_bound && pause_mode == TWEEN_PAUSE_BOUND) { if (is_bound && pause_mode == TWEEN_PAUSE_BOUND) {
Node *bound_node = get_bound_node(); Node *bound_node = get_bound_node();
if (bound_node) { if (bound_node) {
return bound_node->can_process(); return bound_node->is_inside_tree() && bound_node->can_process();
} }
} }