Render brim and skirt in 3D toolpaths preview. #2649

This commit is contained in:
Alessandro Ranellucci 2015-05-18 00:49:16 +02:00
parent 36ba2eb5d6
commit c64308a5e7
4 changed files with 51 additions and 4 deletions

View file

@ -225,8 +225,8 @@ sub make_skirt {
my $skirt_height_z = -1;
foreach my $object (@{$self->objects}) {
my $skirt_height = $self->has_infinite_skirt
? scalar(@{$object->layers})
: min($self->config->skirt_height, scalar(@{$object->layers}));
? $object->layer_count
: min($self->config->skirt_height, $object->layer_count);
my $highest_layer = $object->get_layer($skirt_height - 1);
$skirt_height_z = max($skirt_height_z, $highest_layer->print_z);
}