Update deferred calls to use Callables

This commit is contained in:
kobewi
2023-12-18 15:46:56 +01:00
parent 8297ec949b
commit 0e8f90f4c8
92 changed files with 192 additions and 350 deletions

View File

@ -1778,7 +1778,7 @@ void AnimationMixer::_call_object(ObjectID p_object_id, const StringName &p_meth
return;
}
if (p_deferred) {
MessageQueue::get_singleton()->push_callp(t_obj, p_method, argptrs, argcount);
Callable(t_obj, p_method).call_deferredp(argptrs, argcount);
} else {
Callable::CallError ce;
t_obj->callp(p_method, argptrs, argcount, ce);