mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 00:38:41 +02:00
[Distortion Viewer] update sfmData path
This commit is contained in:
parent
57445a1f98
commit
290ee4c2bf
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue