From 5893b38ddd647458eed4555cae1892cb3ccb7927 Mon Sep 17 00:00:00 2001 From: Yuri Rubinsky Date: Sun, 28 Jul 2024 15:53:09 +0300 Subject: [PATCH] Fix expanded output ports disconnection on updating in visual shader --- 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..f4ee5cd2317 100644 --- a/editor/plugins/visual_shader_editor_plugin.cpp +++ b/editor/plugins/visual_shader_editor_plugin.cpp @@ -7347,7 +7347,7 @@ public: Ref vsnode_new = vsnode->duplicate(); vsnode_new->set(p_property, p_value); const int input_port_count = vsnode_new->get_input_port_count(); - const int output_port_count = vsnode_new->get_output_port_count(); + const int output_port_count = vsnode_new->get_expanded_output_port_count(); List conns; editor->get_visual_shader()->get_node_connections(shader_type, &conns);