mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 14:45:57 +08:00
Fixed regression causing rectilinear infill to be misaligned across layers. #2566
This commit is contained in:
parent
3dedae3928
commit
1d204af6f4
@ -752,8 +752,12 @@ sub generate_toolpaths {
|
|||||||
# TODO: use offset2_ex()
|
# TODO: use offset2_ex()
|
||||||
$to_infill = offset_ex([ map @$_, @$to_infill ], -$_flow->scaled_spacing);
|
$to_infill = offset_ex([ map @$_, @$to_infill ], -$_flow->scaled_spacing);
|
||||||
}
|
}
|
||||||
$filler->spacing($base_flow->spacing);
|
|
||||||
|
|
||||||
|
# We don't use $base_flow->spacing because we need a constant spacing
|
||||||
|
# value that guarantees that all layers are correctly aligned.
|
||||||
|
$filler->spacing($flow->spacing);
|
||||||
|
|
||||||
|
my $mm3_per_mm = $base_flow->mm3_per_mm;
|
||||||
foreach my $expolygon (@$to_infill) {
|
foreach my $expolygon (@$to_infill) {
|
||||||
my @p = $filler->fill_surface(
|
my @p = $filler->fill_surface(
|
||||||
Slic3r::Surface->new(expolygon => $expolygon, surface_type => S_TYPE_INTERNAL),
|
Slic3r::Surface->new(expolygon => $expolygon, surface_type => S_TYPE_INTERNAL),
|
||||||
@ -761,7 +765,6 @@ sub generate_toolpaths {
|
|||||||
layer_height => $layer->height,
|
layer_height => $layer->height,
|
||||||
complete => 1,
|
complete => 1,
|
||||||
);
|
);
|
||||||
my $mm3_per_mm = $base_flow->mm3_per_mm;
|
|
||||||
|
|
||||||
push @paths, map Slic3r::ExtrusionPath->new(
|
push @paths, map Slic3r::ExtrusionPath->new(
|
||||||
polyline => Slic3r::Polyline->new(@$_),
|
polyline => Slic3r::Polyline->new(@$_),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user