From 45e4cb2bbf70a4f26c28045abbb60d9ad180abe1 Mon Sep 17 00:00:00 2001 From: kobewi Date: Thu, 5 May 2022 17:57:25 +0200 Subject: [PATCH] Fix error spam when tweened node leaves tree --- scene/animation/tween.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp index a52902f8c6c..5457da472f4 100644 --- a/scene/animation/tween.cpp +++ b/scene/animation/tween.cpp @@ -335,7 +335,7 @@ bool Tween::can_process(bool p_tree_paused) const { if (is_bound && pause_mode == TWEEN_PAUSE_BOUND) { Node *bound_node = get_bound_node(); if (bound_node) { - return bound_node->can_process(); + return bound_node->is_inside_tree() && bound_node->can_process(); } }