mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -06:00
Refactoring: use the clone() method for inflating Surface objects
This commit is contained in:
parent
e563c62094
commit
1b79b1cb20
4 changed files with 21 additions and 32 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue