Skip to content

Commit b679116

Browse files
committed
Fixed deserialization bug where nodes depending on on_input_connected did not have their connections initialized correctly.
Added BaseNode.on_input_connected call to base.graph._deserialize() (graph.py:1615) to fix this issue.
1 parent 2a9c753 commit b679116

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

NodeGraphQt/base/graph.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,6 +1612,9 @@ def _deserialize(self, data, relative_pos=False, pos=None):
16121612
if allow_connection:
16131613
self._undo_stack.push(PortConnectedCmd(in_port, out_port))
16141614

1615+
# Run on_input_connected to ensure connections are fully set up after deserialization.
1616+
in_node.on_input_connected(in_port, out_port)
1617+
16151618
node_objs = nodes.values()
16161619
if relative_pos:
16171620
self._viewer.move_nodes([n.view for n in node_objs])

0 commit comments

Comments
 (0)