found the right spot for infill_every_layers.

This commit is contained in:
Joseph Lenox 2016-06-29 22:35:02 -05:00
parent 86e1f2fb11
commit d1f6cdf55f

View File

@ -214,6 +214,14 @@ sub make_fill {
# calculate flow spacing for infill pattern generation # calculate flow spacing for infill pattern generation
my $using_internal_flow = 0; my $using_internal_flow = 0;
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 (!$is_solid && !$is_bridge) { if (!$is_solid && !$is_bridge) {
# it's internal infill, so we can calculate a generic flow spacing # it's internal infill, so we can calculate a generic flow spacing
# for all layers, for avoiding the ugly effect of # for all layers, for avoiding the ugly effect of
@ -221,7 +229,8 @@ sub make_fill {
# layer height # layer height
my $internal_flow = $layerm->region->flow( my $internal_flow = $layerm->region->flow(
FLOW_ROLE_INFILL, FLOW_ROLE_INFILL,
$layerm->object->config->layer_height*$layerm->config->infill_every_layers, # TODO: handle infill_every_layers? $infill_combined_flow,
0, # no bridge 0, # no bridge
0, # no first layer 0, # no first layer
-1, # auto width -1, # auto width