Fix function arg count not considered in VisualScript

This commit is contained in:
Pedro J. Estébanez 2017-12-07 02:19:56 +01:00
parent b38378dd6c
commit c68300b88d
1 changed files with 1 additions and 0 deletions

View File

@ -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..