Merge branch 'tm_sla_cutplane_SPE-1600'

This commit is contained in:
tamasmeszaros 2023-12-18 13:49:32 +01:00
commit 5e7dc0a6d8

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));
}