FIX:delete logic shall be the same as arrange logic

Change-Id: I8c6d06abd7a850147e0e7f731bddbdeafcae777c
This commit is contained in:
liz.li 2023-02-14 10:58:00 +08:00 committed by Lane.Wei
parent 0b0a1a3d48
commit 60e408bc59
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ void Selection::remove_curr_plate()
clear();
for (int obj_idx = 0; obj_idx < m_model->objects.size(); obj_idx++) {
if (plate && plate->contain_instance_totally(obj_idx, 0)) {
if (plate && plate->contain_instance(obj_idx, 0)) {
std::vector<unsigned int> volume_idxs = get_volume_idxs_from_object(obj_idx);
do_add_volumes(volume_idxs);
}