From 3fd54ae15c96ed79bd13bf3c8393d87bea6c0532 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Tue, 6 Aug 2019 16:23:03 +0200 Subject: [PATCH] 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. --- NodeGraphQt/base/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NodeGraphQt/base/commands.py b/NodeGraphQt/base/commands.py index a542fde9..966db5cc 100644 --- a/NodeGraphQt/base/commands.py +++ b/NodeGraphQt/base/commands.py @@ -118,7 +118,7 @@ def undo(self): self.node.view.delete() def redo(self): - self.graph.model.nodes[self.node.id] = self.node + self.model.nodes[self.node.id] = self.node self.viewer.add_node(self.node.view, self.pos)