diff options
author | bubnikv <bubnikv@gmail.com> | 2019-07-05 20:46:48 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-07-05 20:46:48 +0300 |
commit | 270fec84d330a931a523081a460369d9871dbd2b (patch) | |
tree | d52b431a2b21f0387512f81975d54b0ab117e3c4 /src/slic3r/GUI/GUI_ObjectManipulation.cpp | |
parent | 4e2fda3315dcfcc9272b71e7c286585a71dca0a5 (diff) |
Fix of the Undo / Redo for Cut.
Added some more operations (for example Rotation) to the Undo / Redo.
Diffstat (limited to 'src/slic3r/GUI/GUI_ObjectManipulation.cpp')
-rw-r--r-- | src/slic3r/GUI/GUI_ObjectManipulation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectManipulation.cpp b/src/slic3r/GUI/GUI_ObjectManipulation.cpp index 79e45facd..ec5272a44 100644 --- a/src/slic3r/GUI/GUI_ObjectManipulation.cpp +++ b/src/slic3r/GUI/GUI_ObjectManipulation.cpp @@ -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; |