From 5fefcc0dc4582f67e37e826009d8b42e92b403c4 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 11 Jan 2012 23:14:59 +0100 Subject: [PATCH] More fixes after refactoring --- lib/Slic3r/Layer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Layer.pm b/lib/Slic3r/Layer.pm index 670739c5b..4f2701105 100644 --- a/lib/Slic3r/Layer.pm +++ b/lib/Slic3r/Layer.pm @@ -324,7 +324,7 @@ sub process_bridges { ($supporting_surface->contour, $supporting_surface->holes); if (@supporting_surfaces == 1 && @surface_edges == 1 - && @{$supporting_surface->contour->p} == @{$surface_edges[0]->p}) { + && @{$supporting_surface->contour} == @{$surface_edges[0]}) { $bridge_over_hole = 1; } push @edges, grep { @$_ } @surface_edges; @@ -348,7 +348,7 @@ sub process_bridges { my $line = Slic3r::Line->new($edges[0]->[0], $edges[0]->[-1]); $bridge_angle = rad2deg_dir($line->direction); } else { - my $center = bounding_box_center([ map @{$_->points}, @edges ]); + my $center = bounding_box_center([ map @$_, @edges ]); my $x = my $y = 0; foreach my $point (map @{$_->points}, @edges) { my $line = Slic3r::Line->new($center, $point);