mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
Bugfix: recent changes broke the "Infill every N layers" feature
This commit is contained in:
@@ -365,6 +365,7 @@ sub infill_every_layers {
|
||||
[ map $_->p, grep $_->surface_type eq 'internal', @$surfaces ],
|
||||
);
|
||||
next if !@$intersection;
|
||||
my $intersection_offsetted = safety_offset([ map @$_, @$intersection ]);
|
||||
|
||||
# new fill surfaces of the current layer are:
|
||||
# - any non-internal surface
|
||||
@@ -387,7 +388,7 @@ sub infill_every_layers {
|
||||
map $_->p, grep $_->surface_type eq 'internal' && $_->depth_layers == $depth,
|
||||
@$surfaces,
|
||||
],
|
||||
safety_offset($intersection),
|
||||
$intersection_offsetted,
|
||||
)};
|
||||
}
|
||||
@$surfaces = @new_surfaces;
|
||||
@@ -408,7 +409,7 @@ sub infill_every_layers {
|
||||
map $_->p, grep $_->surface_type eq 'internal' && $_->depth_layers == $depth,
|
||||
@$lower_surfaces,
|
||||
],
|
||||
safety_offset($intersection),
|
||||
$intersection_offsetted,
|
||||
)};
|
||||
}
|
||||
@$lower_surfaces = @new_surfaces;
|
||||
|
||||
Reference in New Issue
Block a user