[core] graph: move applyExpr when adding a Node to the graph

This commit is contained in:
Fabien Castan 2017-10-16 10:59:21 +02:00
parent 540fe3d47f
commit 2024d7ab1c

View file

@ -554,6 +554,7 @@ class Graph(BaseObject):
for attr in node.attributes: # type: Attribute
attr.valueChanged.connect(self.updateInternals)
node._applyExpr()
return node
def outEdges(self, attribute):
@ -587,7 +588,6 @@ class Graph(BaseObject):
:rtype: Node
"""
node = self.addNode(Node(nodeDesc=nodeType, parent=self, **kwargs))
node._applyExpr()
return node
def _createUniqueNodeName(self, inputName):