mirror of
https://github.com/godotengine/godot.git
synced 2025-01-22 10:32:54 -05:00
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:
commit
0cbcfb3cd6
1 changed files with 1 additions and 1 deletions
|
@ -2796,7 +2796,7 @@ void VisualShader::_update_shader() const {
|
||||||
|
|
||||||
if (varying_setters.has(i)) {
|
if (varying_setters.has(i)) {
|
||||||
for (int &E : varying_setters[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);
|
ERR_FAIL_COND(err != OK);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue