mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-06-21 03:01:41 +08:00
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.
This commit is contained in:
parent
102ef9a024
commit
cad459c6ad
@ -1800,7 +1800,7 @@ void PrintObject::discover_horizontal_shells()
|
|||||||
if (region_config.solid_infill_every_layers.value > 0 && region_config.fill_density.value > 0 &&
|
if (region_config.solid_infill_every_layers.value > 0 && region_config.fill_density.value > 0 &&
|
||||||
(i % region_config.solid_infill_every_layers) == 0) {
|
(i % region_config.solid_infill_every_layers) == 0) {
|
||||||
// Insert a solid internal layer. Mark stInternal surfaces as stInternalSolid or stInternalBridge.
|
// 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)
|
for (Surface &surface : layerm->fill_surfaces.surfaces)
|
||||||
if (surface.surface_type == stInternal)
|
if (surface.surface_type == stInternal)
|
||||||
surface.surface_type = type;
|
surface.surface_type = type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user