mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 08:48:40 +02:00
[ui] minor fix when viewpoints is None
This commit is contained in:
parent
2ec218c086
commit
ea5b639245
1 changed files with 4 additions and 1 deletions
|
@ -1083,7 +1083,10 @@ class Reconstruction(UIGraph):
|
|||
|
||||
def reconstructedCamerasCount(self):
|
||||
""" Get the number of reconstructed cameras in the current context. """
|
||||
return len([v for v in self.getViewpoints() if self.isReconstructed(v)])
|
||||
viewpoints = self.getViewpoints()
|
||||
if not viewpoints:
|
||||
return 0
|
||||
return len([v for v in viewpoints if self.isReconstructed(v)])
|
||||
|
||||
@Slot(QObject, result="QVariant")
|
||||
def getSolvedIntrinsics(self, viewpoint):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue