Fix Tweeners to emit finished() when underlying object is deleted
This commit is contained in:
parent
108c603f91
commit
1abd67caac
3 changed files with 5 additions and 1 deletions
|
|
@ -579,6 +579,7 @@ bool PropertyTweener::step(double &r_delta) {
|
|||
|
||||
Object *target_instance = ObjectDB::get_instance(target);
|
||||
if (!target_instance) {
|
||||
_finish();
|
||||
return false;
|
||||
}
|
||||
elapsed_time += r_delta;
|
||||
|
|
@ -706,6 +707,7 @@ bool CallbackTweener::step(double &r_delta) {
|
|||
}
|
||||
|
||||
if (!callback.is_valid()) {
|
||||
_finish();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -770,6 +772,7 @@ bool MethodTweener::step(double &r_delta) {
|
|||
}
|
||||
|
||||
if (!callback.is_valid()) {
|
||||
_finish();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue