Merge pull request #94875 from Chaosus/vs_fix_expanded_port_updating

Fix expanded output ports disconnection on updating in visual shader
This commit is contained in:
Rémi Verschelde 2024-07-29 15:17:36 +02:00
commit 4f2d818680
No known key found for this signature in database
GPG Key ID: C3336907360768E1
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);