mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -06:00
Fix of the Undo / Redo for Cut.
Added some more operations (for example Rotation) to the Undo / Redo.
This commit is contained in:
parent
4e2fda3315
commit
270fec84d3
4 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue