mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-17 11:47:54 -06:00
Fixed alignment of sparse infill over multiple layers of the same region,
which was broken with 68666de521b1cb15e41ac6728c0e8d3b4b0d4ed0 "Reworked the "new" bridging to respect the bridge_flow_ratio by maintaining extrusion spacing, but modifying the extrusion width and / or height."
This commit is contained in:
parent
00835c7367
commit
fd3dd1611c
1 changed files with 3 additions and 5 deletions
|
@ -160,11 +160,9 @@ std::vector<SurfaceFill> group_fills(const Layer &layer)
|
||||||
params.anchor_length = 1000.f;
|
params.anchor_length = 1000.f;
|
||||||
params.anchor_length_max = 1000.f;
|
params.anchor_length_max = 1000.f;
|
||||||
} else {
|
} else {
|
||||||
// it's internal infill, so we can calculate a generic flow spacing
|
// Internal infill. Calculating infill line spacing independent of the current layer height and 1st layer status,
|
||||||
// for all layers, for avoiding the ugly effect of
|
// so that internall infill will be aligned over all layers of the current region.
|
||||||
// misaligned infill on first layer because of different extrusion width and
|
params.spacing = layerm.region()->flow(*layer.object(), frInfill, layer.object()->config().layer_height, false).spacing();
|
||||||
// layer height
|
|
||||||
params.spacing = layerm.flow(frInfill, layer.object()->config().layer_height).spacing();
|
|
||||||
// Anchor a sparse infill to inner perimeters with the following anchor length:
|
// Anchor a sparse infill to inner perimeters with the following anchor length:
|
||||||
params.anchor_length = float(region_config.infill_anchor);
|
params.anchor_length = float(region_config.infill_anchor);
|
||||||
if (region_config.infill_anchor.percent)
|
if (region_config.infill_anchor.percent)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue