mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-11-26 22:16:32 +01:00
Fix of the Undo / Redo for Cut.
Added some more operations (for example Rotation) to the Undo / Redo.
This commit is contained in:
1 parent
4e2fda3315
commit
270fec84d3
4 files changed
+8
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user