mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-03 19:31:58 +02:00
[PanoramaViewer] Change function calls to adapt to surface change in cpp
This commit is contained in:
parent
634d8a20b6
commit
e642b970ec
2 changed files with 3 additions and 3 deletions
|
@ -149,7 +149,7 @@ AliceVision.FloatImageViewer {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isMouseOver(mx, my) {
|
function isMouseOver(mx, my) {
|
||||||
return root.isMouseInside(mx, my);
|
return root.surface.isMouseInside(mx, my);
|
||||||
}
|
}
|
||||||
|
|
||||||
function getMouseCoordinates(mx, my) {
|
function getMouseCoordinates(mx, my) {
|
||||||
|
|
|
@ -152,8 +152,8 @@ AliceVision.PanoramaViewer {
|
||||||
// Update Euler angles
|
// Update Euler angles
|
||||||
var activeNode = _reconstruction.activeNodes.get('SfMTransform').node;
|
var activeNode = _reconstruction.activeNodes.get('SfMTransform').node;
|
||||||
|
|
||||||
root.yaw = repeater.itemAt(0).item.getYaw();
|
root.yaw = repeater.itemAt(0).item.surface.getYaw();
|
||||||
root.pitch = repeater.itemAt(0).item.getPitch();
|
root.pitch = repeater.itemAt(0).item.surface.getPitch();
|
||||||
|
|
||||||
activeNode.attribute("manualTransform.manualRotation.y").value = root.yaw;
|
activeNode.attribute("manualTransform.manualRotation.y").value = root.yaw;
|
||||||
activeNode.attribute("manualTransform.manualRotation.x").value = root.pitch;
|
activeNode.attribute("manualTransform.manualRotation.x").value = root.pitch;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue