Merge pull request #101648 from aaronp64/varyingsetter_global_per_node

Generate global code for `VisualShader` nodes that connect to `VaryingSetters`
This commit is contained in:
Thaddeus Crews 2025-01-20 16:25:43 -06:00
commit 0cbcfb3cd6
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84

View file

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