From 1845abab70f37870bb8d337f1e1b2731673d0d36 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 12 Apr 2012 10:30:54 +0200 Subject: [PATCH] Bugfix: warnings when trying to process bridges with no anchors --- lib/Slic3r/Layer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Layer.pm b/lib/Slic3r/Layer.pm index 6226f0555f..e72cc57c9a 100644 --- a/lib/Slic3r/Layer.pm +++ b/lib/Slic3r/Layer.pm @@ -341,7 +341,7 @@ sub process_bridges { my $line = Slic3r::Line->new($edges[0]->[0], $edges[0]->[-1]); $bridge_angle = rad2deg_dir($line->direction); } - } else { + } elsif (@edges) { my $center = bounding_box_center([ map @$_, @edges ]); my $x = my $y = 0; foreach my $point (map @$, @edges) {