diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-08 19:13:42 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-08 19:13:42 +0200 |
commit | 6deaa15590d7a939b6fb13f505cf1611b26ed141 (patch) | |
tree | 8356954ba2a8c22080539457700797cc46ec7d97 /modules/gdscript/gdscript_lambda_callable.cpp | |
parent | 3ced38cf282fc30b3a0a4d07f69dea82694fb664 (diff) | |
parent | f68ab70a6ae4ddfdf955912af3dcb66284880b4d (diff) | |
download | redot-engine-6deaa15590d7a939b6fb13f505cf1611b26ed141.tar.gz |
Merge pull request #94076 from AThousandShips/lambda_get_method_fix
[GDScript] Fix `get_method` for lambda self `Callable`s
Diffstat (limited to 'modules/gdscript/gdscript_lambda_callable.cpp')
-rw-r--r-- | modules/gdscript/gdscript_lambda_callable.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_lambda_callable.cpp b/modules/gdscript/gdscript_lambda_callable.cpp index 42b0b066e1..2162a727b3 100644 --- a/modules/gdscript/gdscript_lambda_callable.cpp +++ b/modules/gdscript/gdscript_lambda_callable.cpp @@ -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; |