mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Add remove all from selection command to undo/redo stack only when the redo stack is empty
This commit is contained in:
@@ -495,8 +495,9 @@ void Selection::remove_all()
|
|||||||
return;
|
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;
|
m_mode = Instance;
|
||||||
clear();
|
clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user