Skip to content

Commit 0c7b4fd

Browse files
committed
Fix tween.isValid return true after kill
1 parent 394508d commit 0c7b4fd

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)