[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:{ 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