From af446dc7d495e17bcca512d65349d7e8d435d369 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 23 Dec 2014 22:18:43 +0100 Subject: [PATCH] Apply contact distance to first support layer above object's top surfaces too. #1939 --- lib/Slic3r/Print/SupportMaterial.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/Print/SupportMaterial.pm b/lib/Slic3r/Print/SupportMaterial.pm index 1cb6b4188..a738c1dd8 100644 --- a/lib/Slic3r/Print/SupportMaterial.pm +++ b/lib/Slic3r/Print/SupportMaterial.pm @@ -339,7 +339,12 @@ sub support_layers_z { # layer_height > nozzle_diameter * 0.75 my $nozzle_diameter = $self->print_config->get_at('nozzle_diameter', $self->object_config->support_material_extruder-1); my $support_material_height = max($max_object_layer_height, $nozzle_diameter * 0.75); - my @z = sort { $a <=> $b } @$contact_z, @$top_z, (map $_ + $nozzle_diameter, @$top_z); + + # initialize known, fixed, support layers + my @z = sort { $a <=> $b } + @$contact_z, + @$top_z, # TODO: why we have this? + (map $_ + contact_distance($nozzle_diameter), @$top_z); # enforce first layer height my $first_layer_height = $self->object_config->get_value('first_layer_height');