diff options
author | Loïc Vital <mugulmotion@gmail.com> | 2022-10-10 12:12:49 +0300 |
---|---|---|
committer | Fabien Castan <fabcastan@gmail.com> | 2022-10-19 11:50:24 +0300 |
commit | 426cdbe50b7ca64488dc28b0617e1e31712fbac0 (patch) | |
tree | 397a557891f93d3c8535fc50d7a5db661522b9a5 | |
parent | 72218ed6130cf3f36eec486c93e14d2bc30d3720 (diff) |
[ui] use tempCameraInit node to get viewpoints when it exists
-rwxr-xr-x | meshroom/ui/reconstruction.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meshroom/ui/reconstruction.py b/meshroom/ui/reconstruction.py index 8d303101..4e9683c0 100755 --- a/meshroom/ui/reconstruction.py +++ b/meshroom/ui/reconstruction.py @@ -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) |