You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix incorrect passing of parameter to visual shader preview
This commit is contained in:
@@ -7724,7 +7724,7 @@ void VisualShaderNodePortPreview::_shader_changed() {
|
||||
List<PropertyInfo> params;
|
||||
src_mat->get_shader()->get_shader_uniform_list(¶ms);
|
||||
for (const PropertyInfo &E : params) {
|
||||
mat->set(E.name, src_mat->get(E.name));
|
||||
mat->set_shader_parameter(E.name, src_mat->get_shader_parameter(E.name));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user