mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[Panorama Viewer] Call SfmPath methods from surface
This commit is contained in:
parent
443b3d2946
commit
7ec293a483
1 changed files with 2 additions and 13 deletions
|
@ -38,7 +38,7 @@ AliceVision.FloatImageViewer {
|
||||||
}
|
}
|
||||||
|
|
||||||
root.defaultControlPoints();
|
root.defaultControlPoints();
|
||||||
root.setIdView(idView);
|
root.surface.setIdView(idView);
|
||||||
updateSfmPath();
|
updateSfmPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,20 +56,9 @@ AliceVision.FloatImageViewer {
|
||||||
property int index: 0;
|
property int index: 0;
|
||||||
property var idView: 0;
|
property var idView: 0;
|
||||||
|
|
||||||
property string sfmPath: ""
|
|
||||||
|
|
||||||
function updateSfmPath() {
|
function updateSfmPath() {
|
||||||
var activeNode = _reconstruction.activeNodes.get('SfMTransform').node;
|
var activeNode = _reconstruction.activeNodes.get('SfMTransform').node;
|
||||||
|
root.surface.sfmPath = activeNode ? activeNode.attribute("input").value : "";
|
||||||
if(!activeNode)
|
|
||||||
{
|
|
||||||
root.sfmPath = "";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
root.sfmPath = activeNode.attribute("input").value;
|
|
||||||
}
|
|
||||||
root.setSfmPath(sfmPath);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function updatePrincipalPoint() {
|
function updatePrincipalPoint() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue