Merge pull request #41785 from Chaosus/fix_crash

Fix crash regression in the shader function validation
This commit is contained in:
Yuri Roubinsky 2020-09-05 14:01:39 +03:00 committed by GitHub
commit 52f6ac81be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2398,7 +2398,7 @@ bool ShaderLanguage::_validate_function_call(BlockNode *p_block, const Map<Strin
FunctionNode *pfunc = shader->functions[i].function; FunctionNode *pfunc = shader->functions[i].function;
if (arg_list == "") { if (arg_list == "") {
for (int j = 0; j < args.size(); j++) { for (int j = 0; j < pfunc->arguments.size(); j++) {
if (j > 0) { if (j > 0) {
arg_list += ", "; arg_list += ", ";
} }