mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
Bugfix: recent changes broke the "Infill every N layers" feature
This commit is contained in:
parent
ba1b59f54c
commit
8f32ee8f5a
3 changed files with 21 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue