diff --git a/src/libslic3r/SLAPrint.cpp b/src/libslic3r/SLAPrint.cpp index f8fef6ac7b..591798543c 100644 --- a/src/libslic3r/SLAPrint.cpp +++ b/src/libslic3r/SLAPrint.cpp @@ -1104,7 +1104,7 @@ SLAPrintObject::get_parts_to_slice(SLAPrintObjectStep untilstep) const std::vector ret; - for (unsigned int step = 0; step < s; ++step) { + for (unsigned int step = 0; step <= s; ++step) { auto r = m_mesh_to_slice.equal_range(SLAPrintObjectStep(step)); csg::copy_csgrange_shallow(Range{r.first, r.second}, std::back_inserter(ret)); }