fix group input node using old outgoing connections format

This commit is contained in:
Lera Elvoé 2023-12-10 17:03:15 +03:00
parent a5094ce450
commit 882c031f86
No known key found for this signature in database

View file

@ -33,8 +33,11 @@ func _on_outgoing_connection_added(port_idx: int) -> void:
func _on_outgoing_connection_removed(port_idx: int) -> void: func _on_outgoing_connection_removed(port_idx: int) -> void:
var last_connected_port := 0 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): 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 last_connected_port = port
prints("l:", last_connected_port, "p:", port_idx) prints("l:", last_connected_port, "p:", port_idx)