From 882c031f8620d44a0d9ceb287a141da69cac35be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Sun, 10 Dec 2023 17:03:15 +0300 Subject: [PATCH] fix group input node using old outgoing connections format --- classes/deck/nodes/group_input_node.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)