diff --git a/meshroom/ui/qml/Viewer/Viewer2D.qml b/meshroom/ui/qml/Viewer/Viewer2D.qml index c24b21da..0ec0f032 100644 --- a/meshroom/ui/qml/Viewer/Viewer2D.qml +++ b/meshroom/ui/qml/Viewer/Viewer2D.qml @@ -255,8 +255,8 @@ FocusScope { // qtAliceVision Panorama Viewer Loader { id: panoramaViewerLoader - active: root.aliceVisionPluginAvailable && root.usePanoramaViewer && !floatImageViewerLoader.active - visible: (panoramaViewerLoader.status === Loader.Ready) + active: root.aliceVisionPluginAvailable && root.usePanoramaViewer && !floatImageViewerLoader.active && _reconstruction.activeNodes.get('sfm').node + visible: (panoramaViewerLoader.status === Loader.Ready) && active anchors.centerIn: parent onActiveChanged: { @@ -272,6 +272,7 @@ FocusScope { } else { // Force the unload (instead of using Component.onCompleted to load it once and for all) is necessary since Qt 5.14 setSource("", {}) + displayPanoramaViewer.checked = false; } } onLoaded: {