diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2013-11-14 21:13:57 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2013-11-14 21:13:57 +0400 |
commit | ab3e5b5a2c9d39fa52969e4ab8f0dda0841bffa4 (patch) | |
tree | 2668c4df7539b5798d5a054db23ca232d1d837a3 | |
parent | bb37048c354bb0f3671d69756d10c293bc508511 (diff) |
No support when --support-material-interface-layers was set to 1. #1515
-rw-r--r-- | lib/Slic3r/Print/SupportMaterial.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Slic3r/Print/SupportMaterial.pm b/lib/Slic3r/Print/SupportMaterial.pm index d25f1a3e1..92ccb16e1 100644 --- a/lib/Slic3r/Print/SupportMaterial.pm +++ b/lib/Slic3r/Print/SupportMaterial.pm @@ -325,8 +325,9 @@ sub generate_base_layers { my @overlapping_z = map $support_z->[$_], @overlapping_layers; # in case we have no interface layers, look at upper contact + # (1 interface layer means we only have contact layer, so $interface->{$i+1} is empty) my @upper_contact = (); - if ($self->config->support_material_interface_layers == 0) { + if ($self->config->support_material_interface_layers <= 1) { @upper_contact = @{ $contact->{$support_z->[$i+1]} || [] }; } |