You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Bug Fix #2541: Shader language function validation logic
ensures that it finds the correct function to validate.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user