[ui] Reconstruction: rename 'endNode' to 'texturing'

+ use makeProperty helper
This commit is contained in:
Yann Lanthony 2019-06-27 18:25:40 +02:00
parent c750331c02
commit 00857a7a88
No known key found for this signature in database
GPG key ID: 519FAE6DF7A70642
2 changed files with 8 additions and 21 deletions

View file

@ -133,8 +133,8 @@ Item {
// Load reconstructed model
Button {
readonly property var outputAttribute: _reconstruction.endNode ? _reconstruction.endNode.attribute("outputMesh") : null
readonly property bool outputReady: outputAttribute && _reconstruction.endNode.globalStatus === "SUCCESS"
readonly property var outputAttribute: _reconstruction.texturing ? _reconstruction.texturing.attribute("outputMesh") : null
readonly property bool outputReady: outputAttribute && _reconstruction.texturing.globalStatus === "SUCCESS"
readonly property int outputMediaIndex: viewer3D.library.find(outputAttribute)
text: "Load Model"
@ -142,7 +142,7 @@ Item {
anchors.bottomMargin: 10
anchors.horizontalCenter: parent.horizontalCenter
visible: outputReady && outputMediaIndex == -1
onClicked: viewer3D.view(_reconstruction.endNode.attribute("outputMesh"))
onClicked: viewer3D.view(_reconstruction.texturing.attribute("outputMesh"))
}
}
}