From f8a1e006dc6b5fa94c579aa2022fab0aaba6df6c Mon Sep 17 00:00:00 2001 From: Landrodie Date: Thu, 25 Mar 2021 12:15:13 +0100 Subject: [PATCH] [Panorama Viewer] Fix crash on new pipeline action --- meshroom/ui/qml/Viewer/Viewer2D.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: {