mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[Panorama Viewer] Update condition for selected view change
This commit is contained in:
parent
f25b5fe755
commit
ba42c5e8f8
1 changed files with 10 additions and 1 deletions
|
@ -56,6 +56,9 @@ AliceVision.PanoramaViewer {
|
||||||
property var lastX : 0
|
property var lastX : 0
|
||||||
property var lastY: 0
|
property var lastY: 0
|
||||||
|
|
||||||
|
property var xStart : 0
|
||||||
|
property var yStart : 0
|
||||||
|
|
||||||
property double yaw: 0;
|
property double yaw: 0;
|
||||||
property double pitch: 0;
|
property double pitch: 0;
|
||||||
property double roll: 0;
|
property double roll: 0;
|
||||||
|
@ -154,6 +157,9 @@ AliceVision.PanoramaViewer {
|
||||||
isRotating = true;
|
isRotating = true;
|
||||||
lastX = mouse.x;
|
lastX = mouse.x;
|
||||||
lastY = mouse.y;
|
lastY = mouse.y;
|
||||||
|
|
||||||
|
xStart = mouse.x;
|
||||||
|
yStart = mouse.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
onReleased: {
|
onReleased: {
|
||||||
|
@ -162,9 +168,12 @@ AliceVision.PanoramaViewer {
|
||||||
lastX = 0
|
lastX = 0
|
||||||
lastY = 0
|
lastY = 0
|
||||||
|
|
||||||
if(!mouse.wasHeld && idSelected != -1){
|
//Select the image if clicked
|
||||||
|
if(xStart == mouse.x && yStart == mouse.y && idSelected != -1){
|
||||||
_reconstruction.selectedViewId = idSelected
|
_reconstruction.selectedViewId = idSelected
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue