mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +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;
|
||||
|
|
|
@ -876,7 +876,7 @@ FocusScope {
|
|||
return inputAttrLink.node.isComputed;
|
||||
}
|
||||
|
||||
ToolTip.text: "Panorama Viewer: " + activeNode.label
|
||||
ToolTip.text: activeNode ? "Panorama Viewer " + activeNode.label : "Panorama Viewer"
|
||||
text: MaterialIcons.panorama_sphere
|
||||
font.pointSize: 16
|
||||
padding: 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue