From ab3e5b5a2c9d39fa52969e4ab8f0dda0841bffa4 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 14 Nov 2013 18:13:57 +0100 Subject: [PATCH] No support when --support-material-interface-layers was set to 1. #1515 --- lib/Slic3r/Print/SupportMaterial.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]} || [] }; }