Fix of previous commit

This commit is contained in:
Vojtech Bubnik 2021-05-27 16:14:54 +02:00
parent 99301f89f6
commit 3e28b4c967

View File

@ -504,7 +504,7 @@ static void transformed_its_bboxes_in_z_ranges(
std::vector<std::pair<PrintObjectRegions::BoundingBox, bool>> &bboxes,
const float offset)
{
bboxes.assign(z_ranges.size(), std::make_pair(PrintObjectRegions::BoundingBox, false));
bboxes.assign(z_ranges.size(), std::make_pair(PrintObjectRegions::BoundingBox(), false));
for (const stl_triangle_vertex_indices &tri : its.indices) {
const Vec3f pts[3] = { m * its.vertices[tri(0)], m * its.vertices[tri(1)], m * its.vertices[tri(2)] };
for (size_t irange = 0; irange < z_ranges.size(); ++ irange) {