Browse Source

Fix tween.isValid return true after kill

naputt1 6 months ago
parent
commit
0c7b4fd057
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/animation/tween.cpp

+ 1 - 0
scene/animation/tween.cpp

@@ -212,6 +212,7 @@ void Tween::play() {
 
 
 void Tween::kill() {
 void Tween::kill() {
 	running = false; // For the sake of is_running().
 	running = false; // For the sake of is_running().
+	valid = false;
 	dead = true;
 	dead = true;
 }
 }