Bugfix: gap fill was not inserted in the correct order before leaving island. Includes regression test. #1907

This commit is contained in:
Alessandro Ranellucci 2014-04-29 15:25:14 +02:00
parent 0b0ec7be37
commit 913ab54a2b
3 changed files with 70 additions and 3 deletions

View file

@ -244,9 +244,9 @@ sub make_fill {
}
# add thin fill regions
if ($layerm->thin_fills->count > 0) {
push @fills, Slic3r::ExtrusionPath::Collection->new(@{$layerm->thin_fills});
push @fills_ordering_points, $fills[-1]->first_point;
foreach my $thin_fill (@{$layerm->thin_fills}) {
push @fills, Slic3r::ExtrusionPath::Collection->new($thin_fill);
push @fills_ordering_points, $thin_fill->first_point;
}
# organize infill paths using a nearest-neighbor search