Bugfix: wrong flow and bad pattern rotation when infill-every-layers was set to an arbitrary high value

This commit is contained in:
Alessandro Ranellucci 2013-03-17 01:10:40 +01:00
parent 04c0caad0b
commit 83065b0789
4 changed files with 33 additions and 24 deletions

View file

@ -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;
}