From 0c7b4fd0574c3322a58ef0ef9f1c269855af1d2e Mon Sep 17 00:00:00 2001 From: naputt1 Date: Sun, 23 Feb 2025 00:47:49 +0000 Subject: [PATCH] Fix tween.isValid return true after kill --- scene/animation/tween.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/animation/tween.cpp b/scene/animation/tween.cpp index 4fe3b70da4e..61114ccc21a 100644 --- a/scene/animation/tween.cpp +++ b/scene/animation/tween.cpp @@ -212,6 +212,7 @@ void Tween::play() { void Tween::kill() { running = false; // For the sake of is_running(). + valid = false; dead = true; }