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);