Refactoring: use the clone() method for inflating Surface objects

This commit is contained in:
Alessandro Ranellucci 2013-03-29 19:18:06 +01:00
parent e563c62094
commit 1b79b1cb20
4 changed files with 21 additions and 32 deletions

View file

@ -89,13 +89,7 @@ sub make_fill {
1,
);
push @surfaces, map Slic3r::Surface->new(
expolygon => $_,
surface_type => $group->[0]->surface_type,
bridge_angle => $group->[0]->bridge_angle,
thickness => $group->[0]->thickness,
thickness_layers => $group->[0]->thickness_layers,
), @$union;
push @surfaces, map $group->[0]->clone(expolygon => $_), @$union;
}
}