Fixed regression when concentric infill was used as solid infill. Includes regression test. #1650

This commit is contained in:
Alessandro Ranellucci 2014-04-19 16:53:37 +02:00
parent c3bb8a69db
commit a248c98192
2 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,7 @@ sub fill_surface {
$flow = Slic3r::Flow->new_from_spacing( $flow = Slic3r::Flow->new_from_spacing(
spacing => unscale($distance), spacing => unscale($distance),
nozzle_diameter => $flow->nozzle_diameter, nozzle_diameter => $flow->nozzle_diameter,
layer_height => $surface->thickness, layer_height => ($params{layer_height} or die "No layer_height supplied to fill_surface()"),
bridge => $flow->bridge, bridge => $flow->bridge,
); );
} }

View File

@ -171,6 +171,7 @@ sub scale_points (@) { map [scale $_->[X], scale $_->[Y]], @_ }
for my $pattern (qw(rectilinear honeycomb hilbertcurve concentric)) { for my $pattern (qw(rectilinear honeycomb hilbertcurve concentric)) {
my $config = Slic3r::Config->new_from_defaults; my $config = Slic3r::Config->new_from_defaults;
$config->set('fill_pattern', $pattern); $config->set('fill_pattern', $pattern);
$config->set('solid_fill_pattern', $pattern);
$config->set('perimeters', 1); $config->set('perimeters', 1);
$config->set('skirts', 0); $config->set('skirts', 0);
$config->set('fill_density', 20); $config->set('fill_density', 20);