From 6fa6c1a925de9a397b348a5cfe55c60c92188409 Mon Sep 17 00:00:00 2001 From: supermerill Date: Tue, 15 Oct 2019 17:08:14 +0200 Subject: [PATCH] fix debug build --- src/libslic3r/LayerRegion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/LayerRegion.cpp b/src/libslic3r/LayerRegion.cpp index df3656444..6e453ba59 100644 --- a/src/libslic3r/LayerRegion.cpp +++ b/src/libslic3r/LayerRegion.cpp @@ -435,7 +435,7 @@ double LayerRegion::infill_area_threshold() const void LayerRegion::trim_surfaces(const Polygons &trimming_polygons) { #ifndef NDEBUG - for (const Surface &surface : this->slices.surfaces) + for (const Surface &surface : this->slices().surfaces) assert(surface.surface_type == (stPosInternal | stDensSparse)); #endif /* NDEBUG */ this->m_slices.set(intersection_ex(to_polygons(std::move(this->slices().surfaces)), trimming_polygons, false), stPosInternal | stDensSparse); @@ -444,7 +444,7 @@ void LayerRegion::trim_surfaces(const Polygons &trimming_polygons) void LayerRegion::elephant_foot_compensation_step(const float elephant_foot_compensation_perimeter_step, const Polygons &trimming_polygons) { #ifndef NDEBUG - for (const Surface &surface : this->slices.surfaces) + for (const Surface &surface : this->slices().surfaces) assert(surface.surface_type == (stPosInternal | stDensSparse)); #endif /* NDEBUG */ ExPolygons slices_expolygons = to_expolygons(std::move(this->slices().surfaces));