1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Fix get_method from named lambda

(cherry picked from commit 793cc080cb)
This commit is contained in:
Septian
2023-08-11 11:22:10 +07:00
committed by Yuri Sizov
parent ed94e3eb79
commit bede7fa0d8
5 changed files with 11 additions and 1 deletions

View File

@@ -63,6 +63,10 @@ ObjectID GDScriptRPCCallable::get_object() const {
return object->get_instance_id();
}
StringName GDScriptRPCCallable::get_method() const {
return method;
}
void GDScriptRPCCallable::call(const Variant **p_arguments, int p_argcount, Variant &r_return_value, Callable::CallError &r_call_error) const {
r_return_value = object->callp(method, p_arguments, p_argcount, r_call_error);
}