[GDScript] Fix get_method for lambda self Callables

This commit is contained in:
A Thousand Ships 2024-07-08 16:31:00 +02:00
parent ec02d406ca
commit f68ab70a6a
No known key found for this signature in database
GPG key ID: 2033189A662F8BD7
4 changed files with 31 additions and 0 deletions

View file

@ -198,6 +198,10 @@ ObjectID GDScriptLambdaSelfCallable::get_object() const {
return object->get_instance_id();
}
StringName GDScriptLambdaSelfCallable::get_method() const {
return function->get_name();
}
int GDScriptLambdaSelfCallable::get_argument_count(bool &r_is_valid) const {
if (function == nullptr) {
r_is_valid = false;