From 1ec966fe2c63a08287b6685cb21d5ffe8337b91d Mon Sep 17 00:00:00 2001 From: Yann Lanthony Date: Mon, 30 Oct 2017 16:39:11 +0100 Subject: [PATCH] [commands] remove unnecessary updates * Core Graph is now updated internally when needed * addNewNode already calls applyExpr on newly created node --- meshroom/ui/commands.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/meshroom/ui/commands.py b/meshroom/ui/commands.py index 3763de97..9c55cbf8 100644 --- a/meshroom/ui/commands.py +++ b/meshroom/ui/commands.py @@ -79,7 +79,6 @@ class AddNodeCommand(GraphCommand): def redoImpl(self): self.node = self.graph.addNewNode(self.nodeType) self.setText("Add Node {}".format(self.node.getName())) - self.node._applyExpr() return True def undoImpl(self): @@ -110,8 +109,6 @@ class RemoveNodeCommand(GraphCommand): self.graph.addEdge(self.graph.attribute(srcAttr), self.graph.attribute(dstAttr)) - node.updateInternals() - class SetAttributeCommand(GraphCommand): def __init__(self, graph, attribute, value, parent=None):