From 117cb6704951ffbbb8ec77931469bdd4dc2bd368 Mon Sep 17 00:00:00 2001 From: houston Date: Thu, 10 Oct 2019 12:10:14 +0200 Subject: [PATCH] fix port creation without pair_id --- source/frontend/patchcanvas.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/frontend/patchcanvas.py b/source/frontend/patchcanvas.py index bef4a0ebb..4fecb0c58 100644 --- a/source/frontend/patchcanvas.py +++ b/source/frontend/patchcanvas.py @@ -715,7 +715,7 @@ def splitGroup(group_id): setGroupAsPlugin(group_id, plugin_id, plugin_ui) for port in ports_data: - addPort(group_id, port.port_id, port.port_name, port.port_mode, port.port_type, port.pair_id, port.is_alternate) + addPort(group_id, port.port_id, port.port_name, port.port_mode, port.port_type, port.is_alternate) for conn in conns_data: connectPorts(conn.connection_id, conn.group_out_id, conn.port_out_id, conn.group_in_id, conn.port_in_id) @@ -2650,7 +2650,7 @@ class CanvasBezierLineMov(QGraphicsPathItem): # canvasport.cpp class CanvasPort(QGraphicsItem): - def __init__(self, group_id, port_id, port_name, port_mode, port_type, pair_id, is_alternate, parent): + def __init__(self, group_id, port_id, port_name, port_mode, port_type, is_alternate, parent): QGraphicsItem.__init__(self, parent) # Save Variables, useful for later @@ -2659,7 +2659,7 @@ class CanvasPort(QGraphicsItem): self.m_port_mode = port_mode self.m_port_type = port_type self.m_port_name = port_name - self.m_pair_id = pair_id + self.m_pair_id = None self.m_is_alternate = is_alternate # Base Variables @@ -4020,7 +4020,7 @@ class CanvasBox(QGraphicsItem): CanvasItemFX(self, True, False) self.setVisible(True) - new_widget = CanvasPort(self.m_group_id, port_id, port_name, port_mode, port_type, pair_id, is_alternate, self) + new_widget = CanvasPort(self.m_group_id, port_id, port_name, port_mode, port_type, is_alternate, self) port_dict = port_dict_t() port_dict.group_id = self.m_group_id