[Distortion Viewer] update sfmData path

This commit is contained in:
Thomas Zorroche 2021-01-18 14:59:17 +01:00 committed by Fabien Castan
parent 57445a1f98
commit 290ee4c2bf

View file

@ -27,6 +27,8 @@ AliceVision.FloatImageViewer {
return Image.Null;
root.defaultControlPoints();
updateSfmPath();
return Image.Ready;
}
@ -43,6 +45,16 @@ AliceVision.FloatImageViewer {
property int subdivisions: 5;
property int pointsNumber: (subdivisions + 1) * (subdivisions + 1);
property string sfmPath: "null"
function updateSfmPath() {
var activeNode = _reconstruction.activeNodes.get('sfm').node;
if(!activeNode)
root.sfmPath = "null";
root.sfmPath = activeNode.attribute("outputViewsAndPoses").value;
}
onIsDistoViewerChanged: {
root.hasDistortion(isDistoViewer);
root.displayGrid(isDistoViewer && isGridDisplayed);