mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 06:33:57 -06:00
One more fix for ooze_prevention and skirt_height == -1
This commit is contained in:
parent
f9d38f6655
commit
57e4e5c8e1
2 changed files with 8 additions and 3 deletions
|
@ -607,9 +607,14 @@ sub make_skirt {
|
|||
my @points = ();
|
||||
foreach my $obj_idx (0 .. $#{$self->objects}) {
|
||||
my $object = $self->objects->[$obj_idx];
|
||||
my @layers = map $object->layers->[$_], 0..min($self->config->skirt_height-1, $#{$object->layers});
|
||||
|
||||
# get skirt layers
|
||||
my $skirt_height = ($self->config->skirt_height == -1)
|
||||
? 1 + $#{$object->layers}
|
||||
: 1 + min($self->config->skirt_height-1, $#{$object->layers}+1);
|
||||
|
||||
my @layer_points = (
|
||||
(map @$_, map @$_, map @{$_->slices}, @layers),
|
||||
map @$_, map @$_, map @{$object->layers->[$_]->slices}, 0..($skirt_height-1),
|
||||
);
|
||||
if (@{ $object->support_layers }) {
|
||||
my @support_layers = map $object->support_layers->[$_], 0..min($self->config->skirt_height-1, $#{$object->support_layers});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue