mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
disconnect nodes properly when grouping
This commit is contained in:
parent
464d0a0e33
commit
36ea77048b
1 changed files with 4 additions and 3 deletions
|
@ -156,9 +156,10 @@ func group_nodes(nodes_to_group: Array) -> Deck:
|
||||||
var outgoing_connections := node.outgoing_connections.duplicate(true)
|
var outgoing_connections := node.outgoing_connections.duplicate(true)
|
||||||
|
|
||||||
for from_port: int in outgoing_connections:
|
for from_port: int in outgoing_connections:
|
||||||
for connection: Dictionary in outgoing_connections[from_port]:
|
for to_node: String in outgoing_connections[from_port]:
|
||||||
if !(connection.keys()[0] in node_ids_to_keep):
|
for to_port: int in outgoing_connections[from_port][to_node]:
|
||||||
disconnect_nodes(node._id, connection.keys()[0], from_port, connection.values()[0])
|
if !(to_node in node_ids_to_keep):
|
||||||
|
disconnect_nodes(node._id, to_node, from_port, to_port)
|
||||||
|
|
||||||
var incoming_connections := node.incoming_connections.duplicate(true)
|
var incoming_connections := node.incoming_connections.duplicate(true)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue