mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-31 01:46:31 +02:00
[core] implement _applyExpr for List/GroupAttributes
This commit is contained in:
parent
fbebecd463
commit
eec52e45e3
1 changed files with 8 additions and 0 deletions
|
@ -272,6 +272,10 @@ class ListAttribute(Attribute):
|
|||
uids.append(value.uid(uidIndex))
|
||||
return hash(uids)
|
||||
|
||||
def _applyExpr(self):
|
||||
for value in self._value:
|
||||
value._applyExpr()
|
||||
|
||||
def getExportValue(self):
|
||||
return [attr.getExportValue() for attr in self._value]
|
||||
|
||||
|
@ -313,6 +317,10 @@ class GroupAttribute(Attribute):
|
|||
uids.append(value.uid(uidIndex))
|
||||
return hash(uids)
|
||||
|
||||
def _applyExpr(self):
|
||||
for value in self._value:
|
||||
value._applyExpr()
|
||||
|
||||
def getExportValue(self):
|
||||
return {key: attr.getExportValue() for key, attr in self._value.objects.items()}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue