Fixing function get_parts_to_slice not returning what is expected

This method is not used currently, but the fix is still appropriate
This commit is contained in:
tamasmeszaros 2023-04-03 10:52:33 +02:00
parent d389b69f3b
commit 6aa5747408

View File

@ -1104,7 +1104,7 @@ SLAPrintObject::get_parts_to_slice(SLAPrintObjectStep untilstep) const
std::vector<csg::CSGPart> 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));
}