1
0
Fork 0

Merge pull request #83189 from jsjtxietian/fix-shader-node-parameter-connect-to-vary-error

Fix parameter shader node not declared when only connected to a VaryingSetter
This commit is contained in:
Rémi Verschelde 2023-10-13 11:44:46 +02:00
commit 8f98f13c88
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -2574,7 +2574,7 @@ void VisualShader::_update_shader() const {
if (varying_setters.has(i)) {
for (int &E : varying_setters[i]) {
err = _write_node(Type(i), nullptr, nullptr, nullptr, func_code, default_tex_params, input_connections, output_connections, E, processed, false, classes);
err = _write_node(Type(i), &global_code, nullptr, nullptr, func_code, default_tex_params, input_connections, output_connections, E, processed, false, classes);
ERR_FAIL_COND(err != OK);
}
}