mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
Ensure object on bed after deletion of subpart
This commit is contained in:
parent
9996369e2c
commit
ee99fa2c64
7 changed files with 46 additions and 0 deletions
|
@ -1205,7 +1205,10 @@ void ObjectList::delete_from_model_and_list(const std::vector<ItemForDelete>& it
|
|||
else {
|
||||
del_subobject_from_object(item->obj_idx, item->sub_obj_idx, item->type);
|
||||
if (item->type&itVolume)
|
||||
{
|
||||
m_objects_model->Delete(m_objects_model->GetItemByVolumeId(item->obj_idx, item->sub_obj_idx));
|
||||
_3DScene::ensure_on_bed(wxGetApp().canvas3D(), item->obj_idx);
|
||||
}
|
||||
else
|
||||
m_objects_model->Delete(m_objects_model->GetItemByInstanceId(item->obj_idx, item->sub_obj_idx));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue