From 93482809e5eaf458865b87b78dc46ff55e321160 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 (cherry picked from commit 45e4cb2bbf70a4f26c28045abbb60d9ad180abe1) --- scene/animation/scene_tree_tween.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/animation/scene_tree_tween.cpp b/scene/animation/scene_tree_tween.cpp index 7d849353ba8..d15e3299ba3 100644 --- a/scene/animation/scene_tree_tween.cpp +++ b/scene/animation/scene_tree_tween.cpp @@ -332,7 +332,7 @@ bool SceneTreeTween::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(); } }