Code optimization

This commit is contained in:
Alessandro Ranellucci 2012-02-25 22:15:34 +01:00
parent 170d29a789
commit c98f6734c7
5 changed files with 13 additions and 20 deletions

View file

@ -32,7 +32,9 @@ sub clone {
sub lines {
my $self = shift;
return map Slic3r::Line->new($_), polygon_lines($self);
my @lines = polygon_lines($self);
bless $_, 'Slic3r::Line' for @lines;
return @lines;
}
sub cleanup {