diff --git a/classes/deck/nodes/group_input_node.gd b/classes/deck/nodes/group_input_node.gd index 93c7f3d..52022dc 100644 --- a/classes/deck/nodes/group_input_node.gd +++ b/classes/deck/nodes/group_input_node.gd @@ -33,8 +33,11 @@ func _on_outgoing_connection_added(port_idx: int) -> void: func _on_outgoing_connection_removed(port_idx: int) -> void: var last_connected_port := 0 + #for port: int in outgoing_connections.keys().slice(1): + #if !(outgoing_connections[port] as Array).is_empty(): + #last_connected_port = port for port: int in outgoing_connections.keys().slice(1): - if !(outgoing_connections[port] as Array).is_empty(): + if !(outgoing_connections.get(port, {}) as Dictionary).is_empty(): last_connected_port = port prints("l:", last_connected_port, "p:", port_idx)