[Panorama Viewer] use degrees rotate function

This commit is contained in:
Thomas Zorroche 2021-07-15 15:44:25 +02:00 committed by Fabien Castan
parent 7c8431bc4c
commit c6b2e2d01f
2 changed files with 8 additions and 7 deletions

View file

@ -39,12 +39,10 @@ AliceVision.FloatImageViewer {
onStatusChanged: {
if (viewerTypeString === "panorama") {
// Force to update the surface grid after a downscale change
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))
surface.rotateSurfaceDegrees(
_reconstruction.activeNodes.get('SfMTransform').node.attribute("manualTransform.manualRotation.y").value,
_reconstruction.activeNodes.get('SfMTransform').node.attribute("manualTransform.manualRotation.x").value)
}
root.surface.setIdView(idView);
}