From db590acdb97a460d00bce1f86bce3ee1a4d07537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Tue, 21 May 2024 03:09:43 +0300 Subject: [PATCH] improve group node UX: skip last port, which we know don't have connections --- classes/deck/nodes/group/group_node.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/deck/nodes/group/group_node.gd b/classes/deck/nodes/group/group_node.gd index 95fafd5..e9bd452 100644 --- a/classes/deck/nodes/group/group_node.gd +++ b/classes/deck/nodes/group/group_node.gd @@ -77,7 +77,7 @@ func recalculate_ports() -> void: var _values := extra_port_values.duplicate() ports.clear() - for output_port: Port in output_node.get_input_ports(): + for output_port: Port in output_node.get_input_ports().slice(0, output_node.get_input_ports().size() - 1): var port := add_output_port( output_port.type, output_port.label, @@ -89,7 +89,7 @@ func recalculate_ports() -> void: port.set_value(_values[port.index]) - for input_port: Port in input_node.get_output_ports(): + for input_port: Port in input_node.get_output_ports().slice(0, input_node.get_output_ports().size() - 1): var port := add_input_port( input_port.type, input_port.label,