Fix planepath fill patterns for very small regions. #1463

This commit is contained in:
Alessandro Ranellucci 2013-10-13 16:07:14 +02:00
parent d59e62c9d8
commit e6b59aef4e

View file

@ -36,7 +36,7 @@ sub fill_surface {
my $polyline = Slic3r::Polyline->new(
map [ map {$_*$distance_between_lines} $path->n_to_xy($_) ], @n,
);
return {} if !@$polyline;
return {} if @$polyline <= 1;
$self->process_polyline($polyline, $bounding_box);