diff options
author | Ghostkeeper <rubend@tutanota.com> | 2022-05-11 14:55:45 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2022-05-11 14:55:45 +0300 |
commit | fec74fb40d8a67d512565232af97dcf29a7ffc00 (patch) | |
tree | ceaf720bf1947aa47d7b54bb0d32d96b9de0676a | |
parent | 4f91b4b69d3c52d28f3315495f6513ef59f741d6 (diff) |
Don't use zig-zag endpieces when using gradual infill
The endpieces will connect the endpoint of the zigzag pattern up to the last real line along the edge, but this causes massive overlaps when the pattern is used at different densities next to each other for gradual infill.
-rw-r--r-- | src/FffGcodeWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FffGcodeWriter.cpp b/src/FffGcodeWriter.cpp index 4a8654d14..75b93654b 100644 --- a/src/FffGcodeWriter.cpp +++ b/src/FffGcodeWriter.cpp @@ -1632,7 +1632,7 @@ bool FffGcodeWriter::processSingleLayerInfill(const SliceDataStorage& storage, L const auto pocket_size = mesh.settings.get<coord_t>("cross_infill_pocket_size"); constexpr bool skip_stitching = false; constexpr bool connected_zigzags = false; - constexpr bool use_endpieces = true; + const bool use_endpieces = part.infill_area_per_combine_per_density.size() == 1; //Only use endpieces when not using gradual infill, since they will then overlap. constexpr bool skip_some_zags = false; constexpr int zag_skip_count = 0; |