mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-12 14:27:22 +02:00
[Panorama Viewer] Disable button when no SfM node is computed
This commit is contained in:
parent
edfcb2bb75
commit
c9f965c0d1
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue