mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 08:48:40 +02:00
[Panorama Viewer] apply node values on Initialization
This commit is contained in:
parent
86a0953027
commit
7c8431bc4c
2 changed files with 4 additions and 8 deletions
|
@ -40,11 +40,12 @@ AliceVision.FloatImageViewer {
|
|||
onStatusChanged: {
|
||||
if (viewerTypeString === "panorama") {
|
||||
// Force to update the surface grid after a downscale change
|
||||
surface.rotateSurfaceRadians(0, 0)
|
||||
surface.rotateSurfaceRadians(
|
||||
_reconstruction.activeNodes.get('SfMTransform').node.attribute("manualTransform.manualRotation.y").value * (3.14 / 180),
|
||||
_reconstruction.activeNodes.get('SfMTransform').node.attribute("manualTransform.manualRotation.x").value * (3.14 / 180))
|
||||
}
|
||||
|
||||
root.surface.setIdView(idView);
|
||||
updateSfmPath();
|
||||
}
|
||||
|
||||
property string channelModeString : "rgba"
|
||||
|
@ -77,11 +78,6 @@ AliceVision.FloatImageViewer {
|
|||
property int index: 0;
|
||||
property var idView: 0;
|
||||
|
||||
function updateSfmPath() {
|
||||
var activeNode = _reconstruction.activeNodes.get('SfMTransform').node;
|
||||
root.surface.sfmPath = activeNode ? activeNode.attribute("input").value : "";
|
||||
}
|
||||
|
||||
function updatePrincipalPoint() {
|
||||
var pp = root.surface.getPrincipalPoint();
|
||||
ppRect.x = pp.x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue