Add remove all from selection command to undo/redo stack only when the redo stack is empty

This commit is contained in:
Enrico Turri 2019-07-24 13:51:39 +02:00
parent 1f083ac1ee
commit 0a04a6d92a

View file

@ -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();