mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-12 22:37:21 +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 {
|
||||
id: displayPanoramaViewer
|
||||
// property var activeNode: root.aliceVisionPluginAvailable ? _reconstruction.activeNodes.get('sfm').node : null
|
||||
// property bool isComputed: activeNode && activeNode.isComputed
|
||||
property var activeNode: root.aliceVisionPluginAvailable ? _reconstruction.activeNodes.get('sfm').node : null
|
||||
property bool isComputed: activeNode && activeNode.isComputed
|
||||
|
||||
ToolTip.text: "Panorama Viewer"
|
||||
text: MaterialIcons.panorama_wide_angle
|
||||
|
@ -776,10 +776,10 @@ FocusScope {
|
|||
Layout.minimumWidth: 0
|
||||
checkable: true
|
||||
checked: false
|
||||
enabled: root.aliceVisionPluginAvailable
|
||||
enabled: activeNode && isComputed
|
||||
onCheckedChanged : {
|
||||
// if(displayHDR.checked && checked){
|
||||
// displayHDR.checked = false;
|
||||
// if(displayPanoramaViewer.checked && checked){
|
||||
// displayPanoramaViewer.checked = false;
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue