Skip to content

Commit

Permalink
Merge pull request #80 from PrismPipeline/fix_output_node_port_removal
Browse files Browse the repository at this point in the history
Fix output node port removal
  • Loading branch information
manuelkoester authored Jul 8, 2024
2 parents 3f47c96 + 13b1ad5 commit 01b592d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/QuiltiX/qx_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ def on_output_connected(self, in_port, out_port):
ng_port.view.setToolTip(out_port.view.get_mx_port_type())

def on_output_disconnected(self, in_port, out_port):
if not getattr(self.graph, "is_collapsing", False):
if not getattr(self.graph, "is_collapsing", False) and not in_port.connected_ports():
self.graph.node.get_input(in_port.name()).clear_connections()
self.graph.node.delete_input(in_port.name())
del self.properties()["custom"][f"Input #{self.output_ports().index(in_port) + 1}"]
Expand Down Expand Up @@ -760,9 +760,6 @@ def on_input_connected(self, in_port, out_port):
def on_input_disconnected(self, in_port, out_port):
if getattr(self.graph, "is_collapsing", False):
return

if self.graph._viewer._start_port:
return # is in a live connection

self.graph.node.get_output(in_port.name()).clear_connections()
self.graph.node.delete_output(in_port.name())
Expand Down

0 comments on commit 01b592d

Please sign in to comment.