From 0a04a6d92a4eef83b44f7884447472b200d45293 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Wed, 24 Jul 2019 13:51:39 +0200 Subject: [PATCH] Add remove all from selection command to undo/redo stack only when the redo stack is empty --- src/slic3r/GUI/Selection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Selection.cpp b/src/slic3r/GUI/Selection.cpp index f3b85b7b29..33099f9da8 100644 --- a/src/slic3r/GUI/Selection.cpp +++ b/src/slic3r/GUI/Selection.cpp @@ -495,8 +495,9 @@ void Selection::remove_all() return; //##################################################################################################################################################################################### -// wxGetApp().plater()->take_snapshot(_(L("Selection - Remove - remove_all()"))); + if (!wxGetApp().plater()->can_redo()) //##################################################################################################################################################################################### + wxGetApp().plater()->take_snapshot(_(L("Selection - Remove - remove_all()"))); m_mode = Instance; clear();