Skip to content

Commit 96cd815

Browse files
_deserialize(): fix connection building: get nodes from self
1 parent ad9b61c commit 96cd815

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

NodeGraphQt/base/graph.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,13 +1395,13 @@ def _deserialize(self, data, relative_pos=False, pos=None, set_parent=True):
13951395
# build the connections.
13961396
for connection in data.get('connections', []):
13971397
nid, pname = connection.get('in', ('', ''))
1398-
in_node = nodes.get(nid)
1398+
in_node = self.model.nodes.get(nid)
13991399
if not in_node:
14001400
continue
14011401
in_port = in_node.inputs().get(pname) if in_node else None
14021402

14031403
nid, pname = connection.get('out', ('', ''))
1404-
out_node = nodes.get(nid)
1404+
out_node = self.model.nodes.get(nid)
14051405
if not out_node:
14061406
continue
14071407
out_port = out_node.outputs().get(pname) if out_node else None

0 commit comments

Comments
 (0)