Просмотр исходного кода

Do not combine infill for bottom layer

Alessandro Ranellucci 12 лет назад
Родитель
Сommit
b5bd216f5c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/Slic3r/Print/Object.pm

+ 1 - 1
lib/Slic3r/Print/Object.pm

@@ -434,7 +434,7 @@ sub combine_infill {
             # for each possible depth, look for intersections with the lower layer
             # for each possible depth, look for intersections with the lower layer
             # we do this from the greater depth to the smaller
             # we do this from the greater depth to the smaller
             for (my $d = $Slic3r::Config->infill_every_layers - 1; $d >= 1; $d--) {
             for (my $d = $Slic3r::Config->infill_every_layers - 1; $d >= 1; $d--) {
-                next if ($i - $d) < 0;
+                next if ($i - $d) <= 0; # do not combine infill for bottom layer
                 my $lower_layerm = $self->layer($i - 1)->regions->[$region_id];
                 my $lower_layerm = $self->layer($i - 1)->regions->[$region_id];
                 
                 
                 # select surfaces of the lower layer having the depth we're looking for
                 # select surfaces of the lower layer having the depth we're looking for