mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-19 03:56:26 +02:00
[commands] AddNode: convert list children attributes as link expression
This commit is contained in:
parent
27555b1e7f
commit
48ef285267
1 changed files with 4 additions and 0 deletions
|
@ -93,6 +93,10 @@ class AddNodeCommand(GraphCommand):
|
|||
for key, value in self.kwargs.items():
|
||||
if isinstance(value, Attribute):
|
||||
self.kwargs[key] = value.asLinkExpr()
|
||||
elif isinstance(value, list):
|
||||
for idx, v in enumerate(value):
|
||||
if isinstance(v, Attribute):
|
||||
value[idx] = v.asLinkExpr()
|
||||
|
||||
def redoImpl(self):
|
||||
node = self.graph.addNewNode(self.nodeType, **self.kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue