mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 22:24:01 -06:00
Do not add an undo/redo snapshot when hitting Del key while nothing is selected
This commit is contained in:
parent
f92312b597
commit
368e9d7f4e
1 changed files with 4 additions and 1 deletions
|
@ -5159,8 +5159,11 @@ void Plater::delete_object_from_model(size_t obj_idx) { p->delete_object_from_mo
|
||||||
|
|
||||||
void Plater::remove_selected()
|
void Plater::remove_selected()
|
||||||
{
|
{
|
||||||
|
if (p->get_selection().is_empty())
|
||||||
|
return;
|
||||||
|
|
||||||
Plater::TakeSnapshot snapshot(this, _L("Delete Selected Objects"));
|
Plater::TakeSnapshot snapshot(this, _L("Delete Selected Objects"));
|
||||||
this->p->view3D->delete_selected();
|
p->view3D->delete_selected();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Plater::increase_instances(size_t num)
|
void Plater::increase_instances(size_t num)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue