mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +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:{
|
||||
_reconstruction.beginModification("Panorama Manual Rotation");
|
||||
isRotating = true;
|
||||
lastX = mouse.x;
|
||||
lastY = mouse.y;
|
||||
}
|
||||
|
||||
onReleased: {
|
||||
_reconstruction.endModification();
|
||||
isRotating = false;
|
||||
lastX = 0
|
||||
lastY = 0
|
||||
|
|
Loading…
Add table
Reference in a new issue