1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

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

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) {