mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Add remove all from selection command to undo/redo stack only when the redo stack is empty
This commit is contained in:
parent
1f083ac1ee
commit
0a04a6d92a
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue