mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Skip killed/invalid subtween
This commit is contained in:
@@ -875,7 +875,14 @@ void SubtweenTweener::start() {
|
||||
|
||||
// Reset the subtween.
|
||||
subtween->stop();
|
||||
|
||||
// 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) {
|
||||
|
||||
Reference in New Issue
Block a user