1
0
Fork 0

Merge pull request #107690 from Meorge/bugfix/subtween-valid

Skip killed/invalid subtween
This commit is contained in:
Thaddeus Crews 2025-07-03 12:21:22 -05:00
commit c5904d9f04
No known key found for this signature in database
GPG Key ID: 8C6E5FEB5FC03CCC
1 changed files with 8 additions and 1 deletions

View File

@ -875,7 +875,14 @@ void SubtweenTweener::start() {
// Reset the subtween.
subtween->stop();
subtween->play();
// It's possible that a subtween could be killed before it is started;
// if so, we just want to skip it entirely.
if (subtween->is_valid()) {
subtween->play();
} else {
_finish();
}
}
bool SubtweenTweener::step(double &r_delta) {