mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
improve group node UX: skip last port, which we know don't have connections
This commit is contained in:
parent
3bb1531603
commit
db590acdb9
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue