Skip to content

Commit 14c36b7

Browse files
committed
Fix internal connection count decreased if visual shader node removed
1 parent da4f6e4 commit 14c36b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scene/resources/visual_shader.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,7 @@ void VisualShader::remove_node(Type p_type, int p_id) {
10031003
g->nodes[connection.to_node].node->set_input_port_connected(connection.to_port, false);
10041004
} else if (connection.to_node == p_id) {
10051005
g->nodes[connection.from_node].next_connected_nodes.erase(p_id);
1006+
g->nodes[connection.from_node].node->set_output_port_connected(connection.from_port, false);
10061007
}
10071008
g->connections.erase(E);
10081009
}

0 commit comments

Comments
 (0)