Fix function arg count not considered in VisualScript
This commit is contained in:
parent
b38378dd6c
commit
c68300b88d
|
@ -2047,6 +2047,7 @@ void VisualScriptInstance::create(const Ref<VisualScript> &p_script, Object *p_o
|
||||||
function.argument_count = func_node->get_argument_count();
|
function.argument_count = func_node->get_argument_count();
|
||||||
function.max_stack += function.argument_count;
|
function.max_stack += function.argument_count;
|
||||||
function.flow_stack_size = func_node->is_stack_less() ? 0 : func_node->get_stack_size();
|
function.flow_stack_size = func_node->is_stack_less() ? 0 : func_node->get_stack_size();
|
||||||
|
max_input_args = MAX(max_input_args, function.argument_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
//multiple passes are required to set up this complex thing..
|
//multiple passes are required to set up this complex thing..
|
||||||
|
|
Loading…
Reference in New Issue