From 02a6f3944ac60ce13a2b9cb7d3925b2d741ab4c2 Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Thu, 25 Jul 2024 11:54:22 +0300 Subject: [PATCH] Fix incorrect passing of parameter to visual shader preview --- editor/plugins/visual_shader_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/plugins/visual_shader_editor_plugin.cpp b/editor/plugins/visual_shader_editor_plugin.cpp index 3215f85293a..f4d0015a3f6 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)); } } }