[Panorama Viewer] Disable button when no SfM node is computed

This commit is contained in:
Landrodie 2021-01-22 10:27:47 +01:00 committed by Fabien Castan
parent edfcb2bb75
commit c9f965c0d1

View file

@ -766,8 +766,8 @@ FocusScope {
} }
MaterialToolButton { MaterialToolButton {
id: displayPanoramaViewer id: displayPanoramaViewer
// property var activeNode: root.aliceVisionPluginAvailable ? _reconstruction.activeNodes.get('sfm').node : null property var activeNode: root.aliceVisionPluginAvailable ? _reconstruction.activeNodes.get('sfm').node : null
// property bool isComputed: activeNode && activeNode.isComputed property bool isComputed: activeNode && activeNode.isComputed
ToolTip.text: "Panorama Viewer" ToolTip.text: "Panorama Viewer"
text: MaterialIcons.panorama_wide_angle text: MaterialIcons.panorama_wide_angle
@ -776,10 +776,10 @@ FocusScope {
Layout.minimumWidth: 0 Layout.minimumWidth: 0
checkable: true checkable: true
checked: false checked: false
enabled: root.aliceVisionPluginAvailable enabled: activeNode && isComputed
onCheckedChanged : { onCheckedChanged : {
// if(displayHDR.checked && checked){ // if(displayPanoramaViewer.checked && checked){
// displayHDR.checked = false; // displayPanoramaViewer.checked = false;
// } // }
} }
} }