mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
Bugfix: wrong flow and bad pattern rotation when infill-every-layers was set to an arbitrary high value
This commit is contained in:
parent
04c0caad0b
commit
83065b0789
4 changed files with 33 additions and 24 deletions
|
@ -659,7 +659,7 @@ sub combine_infill {
|
|||
my $nozzle_diameter = $self->print->regions->[$region_id]->extruders->{infill}->nozzle_diameter;
|
||||
|
||||
# define the combinations
|
||||
my @combine = (); # layer_id => depth
|
||||
my @combine = (); # layer_id => thickness in layers
|
||||
{
|
||||
my $current_height = my $layers = 0;
|
||||
for my $layer_id (1 .. $#layer_heights) {
|
||||
|
@ -731,7 +731,12 @@ sub combine_infill {
|
|||
# apply surfaces back with adjusted depth to the uppermost layer
|
||||
if ($layerm->id == $layer_id) {
|
||||
push @this_type,
|
||||
map Slic3r::Surface->new(expolygon => $_, surface_type => $type, depth_layers => $every),
|
||||
map Slic3r::Surface->new(
|
||||
expolygon => $_,
|
||||
surface_type => $type,
|
||||
thickness => sum(map $_->height, @layerms),
|
||||
thickness_layers => scalar(@layerms),
|
||||
),
|
||||
@$intersection;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue