diff --git a/meshroom/ui/qml/Viewer/FeaturesInfoOverlay.qml b/meshroom/ui/qml/Viewer/FeaturesInfoOverlay.qml index ee39a58f..0460f24b 100644 --- a/meshroom/ui/qml/Viewer/FeaturesInfoOverlay.qml +++ b/meshroom/ui/qml/Viewer/FeaturesInfoOverlay.qml @@ -100,7 +100,7 @@ FloatingPane { ToolTip.visible: hovered Layout.fillHeight: true Layout.alignment: Qt.AlignRight - checked: root.featuresViewer.trackContiguousFilter + checked: root.featuresViewer ? root.featuresViewer.trackContiguousFilter : false onClicked: root.featuresViewer.trackContiguousFilter = trackContiguousFilterCB.checked } } @@ -114,7 +114,7 @@ FloatingPane { ToolTip.visible: hovered Layout.fillHeight: true Layout.alignment: Qt.AlignRight - checked: root.featuresViewer.trackInliersFilter + checked: root.featuresViewer ? root.featuresViewer.trackInliersFilter : false onClicked: root.featuresViewer.trackInliersFilter = trackInliersFilterCB.checked } } @@ -128,7 +128,7 @@ FloatingPane { ToolTip.visible: hovered Layout.fillHeight: true Layout.alignment: Qt.AlignRight - checked: root.featuresViewer.display3dTracks + checked: root.featuresViewer ? root.featuresViewer.display3dTracks : false onClicked: root.featuresViewer.display3dTracks = display3dTracksCB.checked } } @@ -158,7 +158,7 @@ FloatingPane { Layout.alignment: Qt.AlignRight from: -1 to: 50 - value: root.featuresViewer.timeWindow + value: root.featuresViewer ? root.featuresViewer.timeWindow : 0 stepSize: 1 editable: true @@ -175,7 +175,8 @@ FloatingPane { } onValueChanged: { - root.featuresViewer.timeWindow = timeWindowSB.value; + if (root.featuresViewer) + root.featuresViewer.timeWindow = timeWindowSB.value; } } } @@ -281,4 +282,4 @@ FloatingPane { } } } -} \ No newline at end of file +} diff --git a/meshroom/ui/qml/Viewer/Viewer2D.qml b/meshroom/ui/qml/Viewer/Viewer2D.qml index a1139985..89025252 100644 --- a/meshroom/ui/qml/Viewer/Viewer2D.qml +++ b/meshroom/ui/qml/Viewer/Viewer2D.qml @@ -460,7 +460,7 @@ FocusScope { 'isHighlightable': Qt.binding(function(){ return panoramaViewerToolbar.enableHover;}), 'displayGridPano': Qt.binding(function(){ return panoramaViewerToolbar.displayGrid;}), 'mouseMultiplier': Qt.binding(function(){ return panoramaViewerToolbar.mouseSpeed;}), - 'msfmData': Qt.binding(function() { return (msfmDataLoader.status === Loader.Ready + 'msfmData': Qt.binding(function() { return (msfmDataLoader && msfmDataLoader.item && msfmDataLoader.status === Loader.Ready && msfmDataLoader.item.status === 2) ? msfmDataLoader.item : null; }), }) } else {