mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-07 14:04:11 -06:00
Refactoring: initialize all layers at once and avoid duplication of slicing height math
This commit is contained in:
parent
a1a4d97f9f
commit
08270022dd
3 changed files with 25 additions and 24 deletions
|
@ -477,7 +477,7 @@ sub make_skirt {
|
|||
$skirt_height = $self->layer_count if $skirt_height > $self->layer_count;
|
||||
my @points = ();
|
||||
foreach my $obj_idx (0 .. $#{$self->objects}) {
|
||||
my @layers = map $self->objects->[$obj_idx]->layer($_), 0..($skirt_height-1);
|
||||
my @layers = map $self->objects->[$obj_idx]->layers->[$_], 0..($skirt_height-1);
|
||||
my @layer_points = (
|
||||
(map @$_, map @{$_->expolygon}, map @{$_->slices}, @layers),
|
||||
(map @$_, map @{$_->thin_walls}, @layers),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue