Skip to content

Commit 819bb61

Browse files
committed
Merge pull request godotengine#103198 from Naputt1/fix-tween.kill()-isValid()-return-false
Fix `Tween.is_valid()` returning `true` after calling `kill()`
2 parents 3fd3866 + 0c7b4fd commit 819bb61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scene/animation/tween.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ void Tween::play() {
212212

213213
void Tween::kill() {
214214
running = false; // For the sake of is_running().
215+
valid = false;
215216
dead = true;
216217
}
217218

0 commit comments

Comments
 (0)