Merge pull request #94729 from Chaosus/vs_fix_param_set

Fix incorrect passing of parameter to visual shader preview
This commit is contained in:
Rémi Verschelde 2024-07-30 12:28:51 +02:00
commit db79f52736
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -7724,7 +7724,7 @@ void VisualShaderNodePortPreview::_shader_changed() {
List<PropertyInfo> params; List<PropertyInfo> params;
src_mat->get_shader()->get_shader_uniform_list(&params); src_mat->get_shader()->get_shader_uniform_list(&params);
for (const PropertyInfo &E : params) { 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));
} }
} }
} }