From e642b970ecbd3cb5ce3a00d0cc7d7bf1c5e350c5 Mon Sep 17 00:00:00 2001 From: Landrodie Date: Wed, 9 Jun 2021 11:16:10 +0200 Subject: [PATCH] [PanoramaViewer] Change function calls to adapt to surface change in cpp --- meshroom/ui/qml/Viewer/FloatImage.qml | 2 +- meshroom/ui/qml/Viewer/PanoramaViewer.qml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meshroom/ui/qml/Viewer/FloatImage.qml b/meshroom/ui/qml/Viewer/FloatImage.qml index b2e94d5c..a23ec4d8 100644 --- a/meshroom/ui/qml/Viewer/FloatImage.qml +++ b/meshroom/ui/qml/Viewer/FloatImage.qml @@ -149,7 +149,7 @@ AliceVision.FloatImageViewer { } function isMouseOver(mx, my) { - return root.isMouseInside(mx, my); + return root.surface.isMouseInside(mx, my); } function getMouseCoordinates(mx, my) { diff --git a/meshroom/ui/qml/Viewer/PanoramaViewer.qml b/meshroom/ui/qml/Viewer/PanoramaViewer.qml index 37980d71..852a4fc3 100644 --- a/meshroom/ui/qml/Viewer/PanoramaViewer.qml +++ b/meshroom/ui/qml/Viewer/PanoramaViewer.qml @@ -152,8 +152,8 @@ AliceVision.PanoramaViewer { // Update Euler angles var activeNode = _reconstruction.activeNodes.get('SfMTransform').node; - root.yaw = repeater.itemAt(0).item.getYaw(); - root.pitch = repeater.itemAt(0).item.getPitch(); + root.yaw = repeater.itemAt(0).item.surface.getYaw(); + root.pitch = repeater.itemAt(0).item.surface.getPitch(); activeNode.attribute("manualTransform.manualRotation.y").value = root.yaw; activeNode.attribute("manualTransform.manualRotation.x").value = root.pitch;