mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fix tests here and there
This commit is contained in:
parent
e485f0b130
commit
159a009f96
6 changed files with 17 additions and 15 deletions
|
@ -305,11 +305,11 @@ sub _simplify_slices {
|
|||
my ($distance) = @_;
|
||||
|
||||
foreach my $layer (map @{$_->layers}, @{$self->objects}) {
|
||||
my @new = map $_->simplify($distance), @{$layer->slices};
|
||||
my @new = map $_->simplify($distance), map $_->clone, @{$layer->slices};
|
||||
$layer->slices->clear;
|
||||
$layer->slices->append(@new);
|
||||
foreach my $layerm (@{$layer->regions}) {
|
||||
my @new = map $_->simplify($distance), @{$layerm->slices};
|
||||
my @new = map $_->simplify($distance), map $_->clone, @{$layerm->slices};
|
||||
$layerm->slices->clear;
|
||||
$layerm->slices->append(@new);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue