From cf8cfc138036020b138735d9877637bab6e931bc Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 9 Feb 2013 21:49:00 +0100 Subject: [PATCH] Bugfix: angle threshold was considered even when enforcing support --- lib/Slic3r/Print/Object.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/Print/Object.pm b/lib/Slic3r/Print/Object.pm index 592380e29..87b7b4733 100644 --- a/lib/Slic3r/Print/Object.pm +++ b/lib/Slic3r/Print/Object.pm @@ -658,8 +658,8 @@ sub generate_support_material { my $distance = $i <= ($Slic3r::Config->support_material_enforce_layers + $Slic3r::Config->raft_layers) ? 0 : $overhang_width; - @overhangs = map $_->offset_ex(2 * $overhang_width), @{diff_ex( - [ map @$_, map $_->offset_ex(-$overhang_width), @{$layer->slices} ], + @overhangs = map $_->offset_ex(2 * $distance), @{diff_ex( + [ map @$_, map $_->offset_ex(-$distance), @{$layer->slices} ], [ map @$_, @{$lower_layer->slices} ], 1, )};