Fixed regression causing first two layers to be infilled with parallel lines

degen-loop-screen
Alessandro Ranellucci 2012-11-06 22:16:01 +01:00
parent e21c806ee9
commit 2ef90562ce
1 changed files with 10 additions and 7 deletions

View File

@ -50,8 +50,6 @@ sub make_fill {
my $self = shift;
my ($layer) = @_;
$_->layer_id($layer->id) for values %{$self->fillers};
Slic3r::debugf "Filling layer %d:\n", $layer->id;
# merge overlapping surfaces
@ -145,11 +143,16 @@ sub make_fill {
next SURFACE unless $density > 0;
}
my @paths = $self->filler($filler)->fill_surface(
$surface,
density => $density,
flow_spacing => $flow_spacing,
);
my @paths;
{
my $f = $self->filler($filler);
$f->layer_id($layer->id);
@paths = $f->fill_surface(
$surface,
density => $density,
flow_spacing => $flow_spacing,
);
}
my $params = shift @paths;
# save into layer