More work (breaks centering and internal surfaces detection)

This commit is contained in:
Alessandro Ranellucci 2012-09-22 19:38:25 +02:00
parent 02356fd613
commit d488afd243
4 changed files with 24 additions and 19 deletions

View file

@ -84,6 +84,9 @@ sub slice {
pop @{$self->layers} if !map @{$_->lines}, @{$self->layers->[-1]->materials};
foreach my $layer (@{ $self->layers }) {
# make sure all layers contain layer material objects for all materials
$layer->material($_) for 0 .. ($self->print->materials_count-1);
Slic3r::debugf "Making surfaces for layer %d (slice z = %f):\n",
$layer->id, unscale $layer->slice_z if $Slic3r::debug;