mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-05 23:07:42 -05:00
Merge commit godotengine/godot@71a9948157
This commit is contained in:
@@ -599,7 +599,6 @@ void PropertyTweener::start() {
|
||||
|
||||
Object *target_instance = ObjectDB::get_instance(target);
|
||||
if (!target_instance) {
|
||||
WARN_PRINT("Target object freed before starting, aborting Tweener.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -877,7 +876,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) {
|
||||
|
||||
Reference in New Issue
Block a user