Skip to content

Commit 3fd54ae

Browse files
authored
Fix typo
The `self.graph` variable does not exist as only `self.model = graph.model` is stored on the object. As such this fix is needed to have the code evaluate correctly. Without this fix the graph could not add any nodes whatsoever.
1 parent c8b7b5e commit 3fd54ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NodeGraphQt/base/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def undo(self):
118118
self.node.view.delete()
119119

120120
def redo(self):
121-
self.graph.model.nodes[self.node.id] = self.node
121+
self.model.nodes[self.node.id] = self.node
122122
self.viewer.add_node(self.node.view, self.pos)
123123

124124

0 commit comments

Comments
 (0)