From fc0c0ca1f0111ff493c6b3733438930b622c1cd7 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 10 Jul 2016 12:25:25 +0200 Subject: [PATCH] Revert "Don't combine more layers than you have nozzle." This reverts commit 2ff9532f43b9375551035749d56382ed2cd86a7f. --- lib/Slic3r/Fill.pm | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/lib/Slic3r/Fill.pm b/lib/Slic3r/Fill.pm index 3bbe68ee9..9cb831928 100644 --- a/lib/Slic3r/Fill.pm +++ b/lib/Slic3r/Fill.pm @@ -214,16 +214,14 @@ sub make_fill { # calculate flow spacing for infill pattern generation my $using_internal_flow = 0; - my $infill_combined_flow = $layerm->layer->object->config->layer_height * $layerm->region->config->infill_every_layers; # multiply the required layer height by infill_every_layers - if ($infill_combined_flow == 0) { - # just in case something happens we don't want to put in a 0mm layer. - $infill_combined_flow = $layerm->layer->object->config->layer_height; + my $infill_combined_flow = 0; # multiply the required layer height by infill_every_layers + if ($layerm->region->config->infill_every_layers > 1) { + $infill_combined_flow = + $layerm->layer->object->config->layer_height*$layerm->region->config->infill_every_layers; + } else { + $infill_combined_flow = + $layerm->layer->object->config->layer_height; } - if ($infill_combined_flow > $flow->nozzle_diameter) { - # can't put out layers bigger than the nozzle width, go as big as possible - $infill_combined_flow = (($flow->nozzle_diameter / $layerm->layer->object->config->layer_height) % 1) * $layerm->layer->object->config->layer_height - } - if (!$is_solid && !$is_bridge) { # it's internal infill, so we can calculate a generic flow spacing # for all layers, for avoiding the ugly effect of