mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 08:48:40 +02:00
[ImageGallery] Handle checks on nodes when these node types don't exist
For checks on AliceVision nodes that may or may not be present, we want to ensure that we are never attempting to access these node instances if they have not been loaded by Meshroom.
This commit is contained in:
parent
b4c5b02098
commit
aa54934e79
1 changed files with 14 additions and 2 deletions
|
@ -837,7 +837,13 @@ Panel {
|
|||
MaterialToolLabelButton {
|
||||
id: displayHDR
|
||||
Layout.minimumWidth: childrenRect.width
|
||||
property var activeNode: _reconstruction ? _reconstruction.activeNodes.get("LdrToHdrMerge").node : null
|
||||
property var activeNode: {
|
||||
if (_reconstruction) {
|
||||
if (_reconstruction.activeNodes.get("LdrToHdrMerge") !== null)
|
||||
return _reconstruction.activeNodes.get("LdrToHdrMerge").node
|
||||
}
|
||||
return null
|
||||
}
|
||||
ToolTip.text: "Visualize HDR images: " + (activeNode ? activeNode.label : "No Node")
|
||||
iconText: MaterialIcons.filter
|
||||
label: activeNode ? activeNode.attribute("nbBrackets").value : ""
|
||||
|
@ -879,7 +885,13 @@ Panel {
|
|||
id: imageProcessing
|
||||
Layout.minimumWidth: childrenRect.width
|
||||
|
||||
property var activeNode: _reconstruction ? _reconstruction.activeNodes.get("ImageProcessing").node : null
|
||||
property var activeNode: {
|
||||
if (_reconstruction) {
|
||||
if (_reconstruction.activeNodes.get("ImageProcessing") !== null)
|
||||
return _reconstruction.activeNodes.get("ImageProcessing").node
|
||||
}
|
||||
return null
|
||||
}
|
||||
font.pointSize: 15
|
||||
padding: 0
|
||||
ToolTip.text: "Preprocessed Images: " + (activeNode ? activeNode.label : "No Node")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue