mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 06:33:16 +00:00
Merge pull request #2926 from Magurosenbei/shader_language_function_validation_fix
Bug Fix #2541: Shader language function validation logic
This commit is contained in:
commit
ed4738fbed
@ -1370,7 +1370,7 @@ ShaderLanguage::Node* ShaderLanguage::validate_function_call(Parser&parser, Oper
|
||||
}
|
||||
}
|
||||
|
||||
if (!fail) {
|
||||
if (!fail && name == program->functions[i].name) {
|
||||
p_func->return_cache=pfunc->return_type;
|
||||
return p_func;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user