mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-05 12:21:59 +02:00
[core] update CoreListModel
* added setObjectList method
This commit is contained in:
parent
d4c1ee6e83
commit
9530ad6805
1 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,10 @@ class CoreListModel:
|
|||
def __len__(self):
|
||||
return len(self._objects)
|
||||
|
||||
def setObjectList(self, iterable):
|
||||
self.clear()
|
||||
self._objects = iterable
|
||||
|
||||
def at(self, idx):
|
||||
return self._objects[idx]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue