Make tests happy

This commit is contained in:
Alessandro Ranellucci 2013-03-07 16:24:25 +01:00
parent 97e864699e
commit 2f192bddca
5 changed files with 11 additions and 8 deletions

View file

@ -437,11 +437,6 @@ sub _add_perimeter {
sub prepare_fill_surfaces {
my $self = shift;
# if hollow object is requested, remove internal surfaces
if ($Slic3r::Config->fill_density == 0) {
@{$self->fill_surfaces} = grep $_->surface_type != S_TYPE_INTERNAL, @{$self->fill_surfaces};
}
# if no solid layers are requested, turn top/bottom surfaces to internal
if ($Slic3r::Config->top_solid_layers == 0) {
$_->surface_type(S_TYPE_INTERNAL) for grep $_->surface_type == S_TYPE_TOP, @{$self->fill_surfaces};