[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:
Nils Landrodie 2021-08-02 17:09:40 +02:00 committed by Fabien Castan
parent 77b23aef4a
commit e43e78d1bc

View file

@ -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