Fix expanded output ports disconnection on updating in visual shader

This commit is contained in:
Yuri Rubinsky 2024-07-28 15:53:09 +03:00
parent 607b230ffe
commit 5893b38ddd
1 changed files with 1 additions and 1 deletions

View File

@ -7347,7 +7347,7 @@ public:
Ref<VisualShaderNode> 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<VisualShader::Connection> conns;
editor->get_visual_shader()->get_node_connections(shader_type, &conns);