diff --git a/meshroom/ui/qml/Viewer/FloatImage.qml b/meshroom/ui/qml/Viewer/FloatImage.qml index e686a693..5c876ce5 100644 --- a/meshroom/ui/qml/Viewer/FloatImage.qml +++ b/meshroom/ui/qml/Viewer/FloatImage.qml @@ -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); } diff --git a/meshroom/ui/qml/Viewer/PanoramaViewer.qml b/meshroom/ui/qml/Viewer/PanoramaViewer.qml index 2682d912..3426a1b0 100644 --- a/meshroom/ui/qml/Viewer/PanoramaViewer.qml +++ b/meshroom/ui/qml/Viewer/PanoramaViewer.qml @@ -57,9 +57,11 @@ AliceVision.PanoramaViewer { property int yaw: 0; property int pitch: 0; + property var activeNode: _reconstruction.activeNodes.get('SfMTransform').node + // Yaw and Pitch in Degrees from SfMTransform sliders - property int yawNode: _reconstruction.activeNodes.get('SfMTransform').node.attribute("manualTransform.manualRotation.y").value; - property int pitchNode: _reconstruction.activeNodes.get('SfMTransform').node.attribute("manualTransform.manualRotation.x").value; + property int yawNode: activeNode.attribute("manualTransform.manualRotation.y").value; + property int pitchNode: activeNode.attribute("manualTransform.manualRotation.x").value; onYawNodeChanged: { if (!isRotating) { @@ -128,6 +130,7 @@ AliceVision.PanoramaViewer { } onReleased: { + console.warn(repeater.model) if (isRotating) { // Update Euler angles