mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-12 07:42:04 +02:00
[core] graph: move applyExpr when adding a Node to the graph
This commit is contained in:
parent
540fe3d47f
commit
2024d7ab1c
1 changed files with 1 additions and 1 deletions
|
@ -554,6 +554,7 @@ class Graph(BaseObject):
|
||||||
for attr in node.attributes: # type: Attribute
|
for attr in node.attributes: # type: Attribute
|
||||||
attr.valueChanged.connect(self.updateInternals)
|
attr.valueChanged.connect(self.updateInternals)
|
||||||
|
|
||||||
|
node._applyExpr()
|
||||||
return node
|
return node
|
||||||
|
|
||||||
def outEdges(self, attribute):
|
def outEdges(self, attribute):
|
||||||
|
@ -587,7 +588,6 @@ class Graph(BaseObject):
|
||||||
:rtype: Node
|
:rtype: Node
|
||||||
"""
|
"""
|
||||||
node = self.addNode(Node(nodeDesc=nodeType, parent=self, **kwargs))
|
node = self.addNode(Node(nodeDesc=nodeType, parent=self, **kwargs))
|
||||||
node._applyExpr()
|
|
||||||
return node
|
return node
|
||||||
|
|
||||||
def _createUniqueNodeName(self, inputName):
|
def _createUniqueNodeName(self, inputName):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue