From 440af2c81c0be4b26d015b8a7c8a701eaf804736 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 3 Jul 2015 23:38:41 +0200 Subject: [PATCH] Bugfix: bridge anchors were shortened under rare circumstances --- lib/Slic3r/Print/Object.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/Print/Object.pm b/lib/Slic3r/Print/Object.pm index 1b5d875eb8..13f43df7ab 100644 --- a/lib/Slic3r/Print/Object.pm +++ b/lib/Slic3r/Print/Object.pm @@ -942,7 +942,12 @@ sub discover_horizontal_shells { # make sure our grown surfaces don't exceed the fill area my @grown = @{intersection( offset($too_narrow, +$margin), - [ map $_->p, @neighbor_fill_surfaces ], + # Discard bridges as they are grown for anchoring and we can't + # remove such anchors. (This may happen when a bridge is being + # anchored onto a wall where little space remains after the bridge + # is grown, and that little space is an internal solid shell so + # it triggers this too_narrow logic.) + [ map $_->p, grep { $_->is_internal && !$_->is_bridge } @neighbor_fill_surfaces ], )}; $new_internal_solid = $solid = [ @grown, @$new_internal_solid ]; }