Skip to content

Commit 53702c1

Browse files
authored
pipe disconnect bug fix
1 parent 14edae0 commit 53702c1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

NodeGraphQt/widgets/viewer.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,8 @@ def sceneMousePressEvent(self, event):
332332
pipe = pipe_items[0]
333333
attr = {IN_PORT: 'output_port', OUT_PORT: 'input_port'}
334334
from_port = pipe.port_from_pos(pos, True)
335-
to_port = getattr(pipe, attr[from_port.port_type])
336-
if not from_port.multi_connection and from_port.connected_ports:
337-
self._detached_port = from_port.connected_ports[0]
338-
elif not to_port.multi_connection:
339-
self._detached_port = to_port
340335

336+
self._detached_port = getattr(pipe, attr[from_port.port_type])
341337
self.start_live_connection(from_port)
342338
self._live_pipe.draw_path(self._start_port, None, pos)
343339
pipe.delete()

0 commit comments

Comments
 (0)