mirror of
https://github.com/godotengine/godot
synced 2024-09-05 22:50:55 +00:00
Fix parameter shader node not declared when only connected to a VaryingSetter
This commit is contained in:
parent
b1371806ad
commit
0ecef0e236
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue