mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-19 20:16:30 +02:00
[commands] remove unnecessary updates
* Core Graph is now updated internally when needed * addNewNode already calls applyExpr on newly created node
This commit is contained in:
parent
5e4b26fa5e
commit
1ec966fe2c
1 changed files with 0 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue