mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-11 07:11:52 +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))
|
uids.append(value.uid(uidIndex))
|
||||||
return hash(uids)
|
return hash(uids)
|
||||||
|
|
||||||
|
def _applyExpr(self):
|
||||||
|
for value in self._value:
|
||||||
|
value._applyExpr()
|
||||||
|
|
||||||
def getExportValue(self):
|
def getExportValue(self):
|
||||||
return [attr.getExportValue() for attr in self._value]
|
return [attr.getExportValue() for attr in self._value]
|
||||||
|
|
||||||
|
@ -313,6 +317,10 @@ class GroupAttribute(Attribute):
|
||||||
uids.append(value.uid(uidIndex))
|
uids.append(value.uid(uidIndex))
|
||||||
return hash(uids)
|
return hash(uids)
|
||||||
|
|
||||||
|
def _applyExpr(self):
|
||||||
|
for value in self._value:
|
||||||
|
value._applyExpr()
|
||||||
|
|
||||||
def getExportValue(self):
|
def getExportValue(self):
|
||||||
return {key: attr.getExportValue() for key, attr in self._value.objects.items()}
|
return {key: attr.getExportValue() for key, attr in self._value.objects.items()}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue