improve group node UX: skip last port, which we know don't have connections

This commit is contained in:
Lera Elvoé 2024-05-21 03:09:43 +03:00
parent 3bb1531603
commit db590acdb9
No known key found for this signature in database

View file

@ -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,