ソースを参照

Merge pull request #103198 from Naputt1/fix-tween.kill()-isValid()-return-false

Fix `Tween.is_valid()` returning `true` after calling `kill()`
Thaddeus Crews 5 ヶ月 前
コミット
819bb61710
1 ファイル変更1 行追加0 行削除
  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;
 }
 }