1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-19 09:24:27 +00:00

Limit skirt height to the print height. #128

This commit is contained in:
Alessandro Ranellucci
2011-12-22 11:57:26 +01:00
parent 28b851508e
commit 55045e0437
+3 -1
View File
@@ -328,7 +328,9 @@ sub extrude_skirt {
# collect points from all layers contained in skirt height
my @points = ();
my @layers = map $self->layer($_), 0..($Slic3r::skirt_height-1);
my $skirt_height = $Slic3r::skirt_height;
$skirt_height = $self->layer_count if $skirt_height > $self->layer_count;
my @layers = map $self->layer($_), 0..($skirt_height-1);
push @points, map @$_, map $_->p, map @{ $_->slices }, @layers;
return if !@points;