diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index f4ee5cd2317..351adc569cd 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -7724,7 +7724,7 @@ void VisualShaderNodePortPreview::_shader_changed() { List 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)); } } }