mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-24 14:36:29 +02:00
[graph] dummy override of List/GroupAttribute uid methods
TODO: implement the real uid mechanism based on child attributes
This commit is contained in:
parent
263ad6b4f5
commit
454b19ed0f
1 changed files with 6 additions and 0 deletions
|
@ -218,6 +218,9 @@ class ListAttribute(Attribute):
|
|||
def remove(self, index):
|
||||
self._value.removeAt(index)
|
||||
|
||||
def uid(self):
|
||||
return 0 # TODO
|
||||
|
||||
def getExportValue(self):
|
||||
return [attr.getExportValue() for attr in self._value]
|
||||
|
||||
|
@ -252,6 +255,9 @@ class GroupAttribute(Attribute):
|
|||
for key, value in exportedValue.items():
|
||||
self._value.get(key).value = value
|
||||
|
||||
def uid(self):
|
||||
return 0 # TODO
|
||||
|
||||
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