Merge pull request #14358 from RandomShaper/fix-vscript

Fix function arg count not considered in VisualScript
This commit is contained in:
Rémi Verschelde 2017-12-09 14:18:26 +01:00 committed by GitHub
commit 48d0336882
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.max_stack += function.argument_count;
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..