diff --git a/meshroom/ui/qml/Viewer/PanoramaViewer.qml b/meshroom/ui/qml/Viewer/PanoramaViewer.qml index b06ddc96..ca9f56a0 100644 --- a/meshroom/ui/qml/Viewer/PanoramaViewer.qml +++ b/meshroom/ui/qml/Viewer/PanoramaViewer.qml @@ -44,21 +44,48 @@ AliceVision.PanoramaViewer { acceptedButtons: Qt.NoButton } - Loader { - id: floatOneLoader - active: root.status - visible: (floatOneLoader.status === Loader.Ready) - anchors.centerIn: parent - onActiveChanged: { - if(active) { - setSource("FloatImage.qml", { - 'source': Qt.binding(function() { return root.source; }), - }) - } else { - // Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14 - setSource("", {}) + property string sfmPath: "" + + function updateSfmPath() { + var activeNode = _reconstruction.activeNodes.get('sfm').node; + + if(!activeNode) + { + root.sfmPath = ""; + } + else + { + root.sfmPath = activeNode.attribute("outputViewsAndPoses").value; + } + root.setSfmPath(sfmPath); + } + + Component { + id: imgPano + Loader { + id: floatOneLoader + active: root.status + visible: (floatOneLoader.status === Loader.Ready) + anchors.centerIn: parent + property string cSource: root.getImgSource() + onActiveChanged: { + if(active) { + setSource("FloatImage.qml", { + 'source': Qt.binding(function() { return cSource; }), + }) + } else { + // Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14 + setSource("", {}) + } } } } + Repeater { + id: repeater + model: 1 + delegate: imgPano + } + + }