mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-02 16:28:51 +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.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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue