diff options
author | kobewi <kobewi4e@gmail.com> | 2022-05-05 17:57:25 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-05-05 17:57:25 +0200 |
commit | 45e4cb2bbf70a4f26c28045abbb60d9ad180abe1 (patch) | |
tree | aafe120c5016a045d126a30595d0b18fb4fd5865 /scene/animation | |
parent | 88a440826ad197ea5d3a98e8c64946c468fc63cd (diff) |
Fix error spam when tweened node leaves tree
Diffstat (limited to 'scene/animation')
-rw-r--r-- | scene/animation/tween.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp index a52902f8c6..5457da472f 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(); } } |