From 313f77ee5929d6f94de9e1d94d6090d2c3cc374c Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 5 Dec 2011 19:54:19 +0100 Subject: [PATCH] Bugfix: removed error when filling small regions --- lib/Slic3r/Fill.pm | 2 +- lib/Slic3r/Fill/PlanePath.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Fill.pm b/lib/Slic3r/Fill.pm index 7d596d8ef..57a23e502 100644 --- a/lib/Slic3r/Fill.pm +++ b/lib/Slic3r/Fill.pm @@ -122,7 +122,7 @@ sub make_fill { flow_ratio => $flow_ratio * ($params->{flow_ratio} || 1), ), @paths, ], - ); + ) if @paths; ###$layer->fills->[-1]->cleanup; } } diff --git a/lib/Slic3r/Fill/PlanePath.pm b/lib/Slic3r/Fill/PlanePath.pm index 55561436d..bbb2a5648 100644 --- a/lib/Slic3r/Fill/PlanePath.pm +++ b/lib/Slic3r/Fill/PlanePath.pm @@ -43,7 +43,7 @@ sub fill_surface { my $polyline = Slic3r::Polyline->cast([ map [ map {$_*$distance_between_lines} $path->n_to_xy($_) ], @n, ]); - return [] if !@{$polyline->points}; + return {} if !@{$polyline->points}; $self->process_polyline($polyline, $bounding_box);