diff --git a/src/libslic3r/Model.cpp b/src/libslic3r/Model.cpp index 27ffef636e..e9e3b395fc 100644 --- a/src/libslic3r/Model.cpp +++ b/src/libslic3r/Model.cpp @@ -787,7 +787,14 @@ BoundingBoxf3 ModelObject::raw_bounding_box() const if (v->is_model_part()) { if (this->instances.empty()) throw std::invalid_argument("Can't call raw_bounding_box() with no instances"); + +#if ENABLE_MODELVOLUME_TRANSFORM + TriangleMesh vol_mesh(v->mesh); + vol_mesh.transform(v->get_matrix()); + bb.merge(this->instances.front()->transform_mesh_bounding_box(vol_mesh, true)); +#else bb.merge(this->instances.front()->transform_mesh_bounding_box(v->mesh, true)); +#endif // ENABLE_MODELVOLUME_TRANSFORM } return bb; }