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
src/slic3r/GUI
|
@ -302,6 +302,7 @@ ObjectManipulation::ObjectManipulation(wxWindow* parent) :
|
|||
selection.synchronize_unselected_instances(Selection::SYNC_ROTATION_GENERAL);
|
||||
selection.synchronize_unselected_volumes();
|
||||
// Copy rotation values from GLVolumes into Model (ModelInstance / ModelVolume), trigger background processing.
|
||||
wxGetApp().plater()->take_snapshot(_(L("Set Rotation")));
|
||||
canvas->do_rotate();
|
||||
|
||||
UpdateAndShow(true);
|
||||
|
@ -687,6 +688,7 @@ void ObjectManipulation::change_rotation_value(int axis, double value)
|
|||
selection.rotate(
|
||||
(M_PI / 180.0) * (transformation_type.absolute() ? rotation : rotation - m_cache.rotation),
|
||||
transformation_type);
|
||||
wxGetApp().plater()->take_snapshot(_(L("Set Orientation")));
|
||||
canvas->do_rotate();
|
||||
|
||||
m_cache.rotation = rotation;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue