diff options
author | Juan Linietsky <reduzio@gmail.com> | 2023-01-06 15:37:53 +0100 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2023-01-08 23:35:11 +0100 |
commit | 0e0ca01bce1adecde1de745d2b31d2ad0c12bf6b (patch) | |
tree | aea57faa3c7e1a1f7cc2816fba45c4a688422623 /core/variant/variant_call.cpp | |
parent | b14f7aa9f92ff44135c283a9c88dab5ef9136d64 (diff) | |
download | redot-engine-0e0ca01bce1adecde1de745d2b31d2ad0c12bf6b.tar.gz |
Properly report Callable bound arguments
Fixes #63213
Adds a function: Callable::get_amount_of_arguments_bound() to query this in callables. Exposed to the engine API.
Diffstat (limited to 'core/variant/variant_call.cpp')
-rw-r--r-- | core/variant/variant_call.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp index 088e24ba6e..6b6df0a5c7 100644 --- a/core/variant/variant_call.cpp +++ b/core/variant/variant_call.cpp @@ -2016,6 +2016,7 @@ static void _register_variant_builtin_methods() { bind_method(Callable, get_object, sarray(), varray()); bind_method(Callable, get_object_id, sarray(), varray()); bind_method(Callable, get_method, sarray(), varray()); + bind_method(Callable, get_bound_arguments_count, sarray(), varray()); bind_method(Callable, hash, sarray(), varray()); bind_method(Callable, unbind, sarray("argcount"), varray()); |