Fixed offset of last remaining object part after deletion

This commit is contained in:
Enrico Turri 2018-11-30 10:25:09 +01:00
parent dca0cb04ea
commit 62a3cb272e

View File

@ -676,6 +676,7 @@ void ModelObject::delete_volume(size_t idx)
inst->set_offset(inst->get_offset() + inst->get_matrix(true) * vol_offset);
}
v->set_offset(Vec3d::Zero());
v->set_new_unique_id();
}
this->invalidate_bounding_box();