Code optimization
This commit is contained in:
parent
170d29a789
commit
c98f6734c7
5 changed files with 13 additions and 20 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue