mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-06 05:36:39 +02:00
[Panorama Viewer] Add undo group for panorama modifications
Add an undo group to avoid having to press undo for each small steps of the panorama
This commit is contained in:
parent
77b23aef4a
commit
e43e78d1bc
1 changed files with 2 additions and 0 deletions
|
@ -152,12 +152,14 @@ AliceVision.PanoramaViewer {
|
||||||
}
|
}
|
||||||
|
|
||||||
onPressed:{
|
onPressed:{
|
||||||
|
_reconstruction.beginModification("Panorama Manual Rotation");
|
||||||
isRotating = true;
|
isRotating = true;
|
||||||
lastX = mouse.x;
|
lastX = mouse.x;
|
||||||
lastY = mouse.y;
|
lastY = mouse.y;
|
||||||
}
|
}
|
||||||
|
|
||||||
onReleased: {
|
onReleased: {
|
||||||
|
_reconstruction.endModification();
|
||||||
isRotating = false;
|
isRotating = false;
|
||||||
lastX = 0
|
lastX = 0
|
||||||
lastY = 0
|
lastY = 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue