mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-04 20:01:58 +02:00
[ui] use tempCameraInit node to get viewpoints when it exists
This commit is contained in:
parent
72218ed613
commit
426cdbe50b
1 changed files with 6 additions and 1 deletions
|
@ -565,7 +565,12 @@ class Reconstruction(UIGraph):
|
|||
def getViewpoints(self):
|
||||
""" Return the Viewpoints model. """
|
||||
# TODO: handle multiple Viewpoints models
|
||||
return self._cameraInit.viewpoints.value if self._cameraInit else QObjectListModel(parent=self)
|
||||
if self.tempCameraInit:
|
||||
return self.tempCameraInit.viewpoints.value
|
||||
elif self._cameraInit:
|
||||
return self._cameraInit.viewpoints.value
|
||||
else:
|
||||
return QObjectListModel(parent=self)
|
||||
|
||||
def updateCameraInits(self):
|
||||
cameraInits = self._graph.nodesOfType("CameraInit", sortedByIndex=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue