Fix of the Undo / Redo for Cut.

Added some more operations (for example Rotation) to the Undo / Redo.
This commit is contained in:
bubnikv 2019-07-05 19:46:48 +02:00
parent 4e2fda3315
commit 270fec84d3
4 changed files with 8 additions and 3 deletions

View file

@ -600,6 +600,7 @@ bool GLGizmosManager::on_mouse(wxMouseEvent& evt, GLCanvas3D& canvas)
if (m_current == Flatten)
{
// Rotate the object so the normal points downward:
wxGetApp().plater()->take_snapshot(_(L("Place on Face")));
selection.flattening_rotate(get_flattening_normal());
canvas.do_flatten();
wxGetApp().obj_manipul()->set_dirty();
@ -685,6 +686,7 @@ bool GLGizmosManager::on_mouse(wxMouseEvent& evt, GLCanvas3D& canvas)
}
case Rotate:
{
wxGetApp().plater()->take_snapshot(_(L("Rotate Object")));
canvas.do_rotate();
break;
}