Merge pull request #83830 from jsjtxietian/fix-varying-assign-swizzle-check

Fix assign with swizzle in shader not doing varying validation check
This commit is contained in:
Rémi Verschelde 2023-10-25 10:30:22 +02:00
commit 9f49da24da
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -4639,6 +4639,10 @@ bool ShaderLanguage::_validate_assign(Node *p_node, const FunctionInfo &p_functi
return false;
}
if (shader->varyings.has(var->name)) {
return _validate_varying_assign(shader->varyings[var->name], r_message);
}
if (!(p_function_info.built_ins.has(var->name) && p_function_info.built_ins[var->name].constant)) {
return true;
}