[Panorama Viewer] clean up panorama code

This commit is contained in:
Thomas Zorroche 2021-07-16 11:27:46 +02:00 committed by Fabien Castan
parent 4aa5151af3
commit c06273d2cc
3 changed files with 14 additions and 23 deletions

View file

@ -59,7 +59,7 @@ AliceVision.PanoramaViewer {
property var activeNode: _reconstruction.activeNodes.get('SfMTransform').node
// Yaw and Pitch in Degrees from SfMTransform sliders
// Yaw and Pitch in Degrees from SfMTransform node sliders
property int yawNode: activeNode.attribute("manualTransform.manualRotation.y").value;
property int pitchNode: activeNode.attribute("manualTransform.manualRotation.x").value;
@ -181,15 +181,7 @@ AliceVision.PanoramaViewer {
function updateSfmPath() {
var activeNode = _reconstruction.activeNodes.get('SfMTransform').node;
if(!activeNode)
{
root.sfmPath = "";
}
else
{
root.sfmPath = activeNode.attribute("input").value;
}
root.sfmPath = (activeNode) ? activeNode.attribute("input").value : "";
}
property var pathList : []