From 85423aa3b7e4d1763093a639359d61632df49e34 Mon Sep 17 00:00:00 2001 From: supermerill Date: Thu, 29 Nov 2018 19:30:04 +0100 Subject: [PATCH] stupid bugfix --- xs/src/libslic3r/LayerRegion.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xs/src/libslic3r/LayerRegion.cpp b/xs/src/libslic3r/LayerRegion.cpp index 3f36d3f68..cb009d3f9 100644 --- a/xs/src/libslic3r/LayerRegion.cpp +++ b/xs/src/libslic3r/LayerRegion.cpp @@ -239,11 +239,11 @@ LayerRegion::prepare_fill_surfaces() // if no solid layers are requested, turn top/bottom surfaces to internal if (this->region()->config.top_solid_layers == 0 && this->region()->config.min_top_bottom_shell_thickness <= 0) { for (Surface &surface : this->fill_surfaces.surfaces) { - if (surface->surface_type == stTop) { + if (surface.surface_type == stTop) { if (this->layer()->object()->config.infill_only_where_needed) { - surface->surface_type = (stInternal | stVoid); + surface.surface_type = (stInternal | stVoid); } else { - surface->surface_type = stInternal; + surface.surface_type = stInternal; } } } @@ -251,8 +251,8 @@ LayerRegion::prepare_fill_surfaces() if (this->region()->config.bottom_solid_layers == 0 && this->region()->config.min_top_bottom_shell_thickness <= 0) { for (Surface &surface : this->fill_surfaces.surfaces) { - if (surface->is_bottom()) - surface->surface_type = stInternal; + if (surface.is_bottom()) + surface.surface_type = stInternal; } }