mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Do not add an undo/redo snapshot when hitting Del key while nothing is selected
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user