mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 11:17:51 -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
|
@ -20,7 +20,7 @@ sub infill_direction {
|
|||
|
||||
if (defined $self->layer_id) {
|
||||
# alternate fill direction
|
||||
my $layer_num = $self->layer_id / $surface->depth_layers;
|
||||
my $layer_num = $self->layer_id / $surface->thickness_layers;
|
||||
my $angle = $self->angles->[$layer_num % @{$self->angles}];
|
||||
$rotate[0] = Slic3r::Geometry::deg2rad($self->angle) + $angle if $angle;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue