Merge pull request #94498 from Chaosus/vs_fix_connection_bug

Fix internal connection count decreased if visual shader node removed
This commit is contained in:
Rémi Verschelde 2024-07-18 15:38:27 +02:00
commit caa1b6d991
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -1003,6 +1003,7 @@ void VisualShader::remove_node(Type p_type, int p_id) {
g->nodes[connection.to_node].node->set_input_port_connected(connection.to_port, false);
} else if (connection.to_node == p_id) {
g->nodes[connection.from_node].next_connected_nodes.erase(p_id);
g->nodes[connection.from_node].node->set_output_port_connected(connection.from_port, false);
}
g->connections.erase(E);
}