From c21bbd307ccb7ea7cadb2c83d5295e7f3bb956af Mon Sep 17 00:00:00 2001 From: mugulmd Date: Tue, 3 Jan 2023 05:29:54 -0800 Subject: [PATCH] [ui] check box in 2D viewer header bar to enable/disable 8bit viewer --- meshroom/ui/qml/Viewer/Viewer2D.qml | 2 +- meshroom/ui/qml/WorkspaceView.qml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/meshroom/ui/qml/Viewer/Viewer2D.qml b/meshroom/ui/qml/Viewer/Viewer2D.qml index 2b545d44..d16dae8b 100644 --- a/meshroom/ui/qml/Viewer/Viewer2D.qml +++ b/meshroom/ui/qml/Viewer/Viewer2D.qml @@ -26,7 +26,7 @@ FocusScope { property var activeNodeFisheye: _reconstruction ? _reconstruction.activeNodes.get("PanoramaInit").node : null property bool cropFisheye : activeNodeFisheye ? activeNodeFisheye.attribute("useFisheye").value : false - property bool enable8bitViewer: MeshroomApp.default8bitViewerEnabled + property bool enable8bitViewer: enable8bitViewerAction.checked QtObject { id: m diff --git a/meshroom/ui/qml/WorkspaceView.qml b/meshroom/ui/qml/WorkspaceView.qml index 9379da77..f15ba53a 100644 --- a/meshroom/ui/qml/WorkspaceView.qml +++ b/meshroom/ui/qml/WorkspaceView.qml @@ -138,6 +138,12 @@ Item { checkable: true checked: true && !viewer2D.usePanoramaViewer } + Action { + id: enable8bitViewerAction + text: "Enable 8-bit Viewer" + checkable: true + checked: true + } } } }