Bugfix: support material and brim didn't work correctly. Includes unit test. #1074

This commit is contained in:
Alessandro Ranellucci 2013-03-30 00:21:09 +01:00
parent d4119b0eb1
commit f5e48a306d
3 changed files with 27 additions and 4 deletions

View file

@ -86,10 +86,11 @@ sub length {
sub grow {
my $self = shift;
return Slic3r::Geometry::Clipper::offset(
[ Slic3r::Polygon->new(@$self, CORE::reverse @$self[1..($#$self-1)]) ],
@_,
);
return map Slic3r::Polygon->new($_),
Slic3r::Geometry::Clipper::offset(
[ Slic3r::Polygon->new(@$self, CORE::reverse @$self[1..($#$self-1)]) ],
@_,
);
}
sub nearest_point_to {