[Panorama Viewer] Call SfmPath methods from surface

This commit is contained in:
Thomas Zorroche 2021-06-09 17:04:27 +02:00 committed by Fabien Castan
parent 443b3d2946
commit 7ec293a483

View file

@ -38,7 +38,7 @@ AliceVision.FloatImageViewer {
}
root.defaultControlPoints();
root.setIdView(idView);
root.surface.setIdView(idView);
updateSfmPath();
}
@ -56,20 +56,9 @@ AliceVision.FloatImageViewer {
property int index: 0;
property var idView: 0;
property string sfmPath: ""
function updateSfmPath() {
var activeNode = _reconstruction.activeNodes.get('SfMTransform').node;
if(!activeNode)
{
root.sfmPath = "";
}
else
{
root.sfmPath = activeNode.attribute("input").value;
}
root.setSfmPath(sfmPath);
root.surface.sfmPath = activeNode ? activeNode.attribute("input").value : "";
}
function updatePrincipalPoint() {