From b956faa1535ec9a4258034525e827a2a4af6dd42 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Fri, 9 Aug 2013 16:30:40 +0200 Subject: [PATCH] Adapt avoid_crossing_perimeters code to the recent changes --- lib/Slic3r/GCode.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm index 53e871551..6c58b2dbb 100644 --- a/lib/Slic3r/GCode.pm +++ b/lib/Slic3r/GCode.pm @@ -427,9 +427,9 @@ sub _plan { my $need_retract = !$self->config->only_retract_when_crossing_perimeters; if (!$need_retract) { $need_retract = 1; - foreach my $slice (@{$self->layer->upper_layer_slices}) { + foreach my $island ($self->layer->upper_layer_islands) { # discard the island if at any line is not enclosed in it - next if first { !$slice->encloses_line($_, scaled_epsilon) } @travel; + next if first { !$island->encloses_line($_, scaled_epsilon) } @travel; # okay, this island encloses the full travel path $need_retract = 0; last;