mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 02:08:08 +02:00
[Viewer] FeaturesInfoOverlay: Ensure node exists before getting its label
This fixes a "TypeError: Cannot read property 'label' of null" issue.
This commit is contained in:
parent
13b8266d14
commit
d8709434a3
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ FloatingPane {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
// Node used to read features
|
// Node used to read features
|
||||||
Label {
|
Label {
|
||||||
text: _reconstruction ? _reconstruction.activeNodes.get("featureProvider").node.label : ""
|
text: _reconstruction && _reconstruction.activeNodes.get("featureProvider").node ? _reconstruction.activeNodes.get("featureProvider").node.label : ""
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
}
|
}
|
||||||
// Settings menu
|
// Settings menu
|
||||||
|
|
Loading…
Add table
Reference in a new issue