From cad459c6adb84ab7c9fa48c9dc3db80a7af2006e Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Fri, 10 Dec 2021 12:59:52 +0100 Subject: [PATCH] Fix of "solid_infill_every_layers = 1" does not generate valid infill for some geometries #6736 With solid_infill_every_layers = 1 the new solid layer should be solid infill not solid bridging infill. Once the layer is correctly classified as solid with solid_infill_every_layers = 1, everything works as expected. --- src/libslic3r/PrintObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/PrintObject.cpp b/src/libslic3r/PrintObject.cpp index 05b8c9eb68..3d6eb21e54 100644 --- a/src/libslic3r/PrintObject.cpp +++ b/src/libslic3r/PrintObject.cpp @@ -1800,7 +1800,7 @@ void PrintObject::discover_horizontal_shells() if (region_config.solid_infill_every_layers.value > 0 && region_config.fill_density.value > 0 && (i % region_config.solid_infill_every_layers) == 0) { // Insert a solid internal layer. Mark stInternal surfaces as stInternalSolid or stInternalBridge. - SurfaceType type = (region_config.fill_density == 100) ? stInternalSolid : stInternalBridge; + SurfaceType type = (region_config.fill_density == 100 || region_config.solid_infill_every_layers == 1) ? stInternalSolid : stInternalBridge; for (Surface &surface : layerm->fill_surfaces.surfaces) if (surface.surface_type == stInternal) surface.surface_type = type;