[ui] fix Live Reconstruction mode

* use Filepath to setup watched folder
* consider whether mvs nodes were created when sending sfmAugmented signal
This commit is contained in:
Yann Lanthony 2018-07-05 16:35:08 +02:00
parent b9b9bca4ec
commit 80869879bb
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ Panel {
id: selectFolderDialog
title: "Live Reconstruction - Select Image Folder"
onAccepted: {
folderPath.text = folder.toLocaleString().replace("file://", "")
folderPath.text = Filepath.urlToString(folder)
}
}

View file

@ -299,7 +299,7 @@ class Reconstruction(UIGraph):
with self.groupedGraphModification("SfM Augmentation"):
sfm, mvs = multiview.sfmAugmentation(self, self.lastSfmNode(), withMVS=withMVS)
self.sfmAugmented.emit(sfm[0], mvs[-1])
self.sfmAugmented.emit(sfm[0], mvs[-1] if mvs else sfm[-1])
return sfm[0], sfm[-1]
def allImagePaths(self):