From 6aa5747408405c7e72ee70549c1e619752da036d Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Mon, 3 Apr 2023 10:52:33 +0200 Subject: [PATCH] Fixing function get_parts_to_slice not returning what is expected This method is not used currently, but the fix is still appropriate --- src/libslic3r/SLAPrint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }