mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fixed a crash when deleting several instances of one object
This commit is contained in:
parent
60926e7be3
commit
bdf4d5f41f
1 changed files with 2 additions and 2 deletions
|
@ -1894,8 +1894,6 @@ void GLCanvas3D::Selection::erase()
|
|||
}
|
||||
wxGetApp().obj_list()->delete_from_model_and_list(items);
|
||||
}
|
||||
else if (is_single_full_instance())
|
||||
wxGetApp().obj_list()->delete_from_model_and_list(ItemType::itInstance, get_object_idx(), get_instance_idx());
|
||||
else if (is_multiple_full_instance())
|
||||
{
|
||||
std::set<std::pair<int, int>> instances_idxs;
|
||||
|
@ -1915,6 +1913,8 @@ void GLCanvas3D::Selection::erase()
|
|||
}
|
||||
wxGetApp().obj_list()->delete_from_model_and_list(items);
|
||||
}
|
||||
else if (is_single_full_instance())
|
||||
wxGetApp().obj_list()->delete_from_model_and_list(ItemType::itInstance, get_object_idx(), get_instance_idx());
|
||||
else if (is_mixed())
|
||||
{
|
||||
std::set<ItemForDelete> items_set;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue