diff options
author | Marcin Zawiejski <dragmz@gmail.com> | 2019-03-04 21:39:17 +0100 |
---|---|---|
committer | Marcin Zawiejski <dragmz@gmail.com> | 2019-03-04 21:39:17 +0100 |
commit | 0d35525f0bb9acf63bf7bafec68168b4336f9cb5 (patch) | |
tree | 40d55a093728372c4e4939421578a9b8b924b923 /modules | |
parent | 878950db162cde51be1aa1df952bf0347e8cdbd5 (diff) |
calculate inputs count from arg types instead of names
Diffstat (limited to 'modules')
-rw-r--r-- | modules/visual_script/visual_script_func_nodes.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/visual_script/visual_script_func_nodes.cpp b/modules/visual_script/visual_script_func_nodes.cpp index 7dba8fd488..bb0435a679 100644 --- a/modules/visual_script/visual_script_func_nodes.cpp +++ b/modules/visual_script/visual_script_func_nodes.cpp @@ -129,9 +129,8 @@ StringName VisualScriptFunctionCall::_get_base_type() const { int VisualScriptFunctionCall::get_input_value_port_count() const { if (call_mode == CALL_MODE_BASIC_TYPE) { - - Vector<StringName> names = Variant::get_method_argument_names(basic_type, function); - return names.size() + (rpc_call_mode >= RPC_RELIABLE_TO_ID ? 1 : 0) + 1; + Vector<Variant::Type> types = Variant::get_method_argument_types(basic_type, function); + return types.size() + (rpc_call_mode >= RPC_RELIABLE_TO_ID ? 1 : 0) + 1; } else { |