Fixed one more case where only_retract_when_crossing_perimeters didn't apply. #2498

This commit is contained in:
Alessandro Ranellucci 2015-01-06 11:29:34 +01:00
parent 0f7933c4f9
commit 7e82159620
6 changed files with 30 additions and 1 deletions

View file

@ -352,7 +352,8 @@ sub travel_to {
&& $self->config->fill_density > 0
&& defined($self->layer)
&& ($self->layer->any_internal_region_slice_contains_line($travel)
|| $self->layer->any_internal_region_fill_surface_contains_line($travel)))
|| ($self->layer->any_bottom_region_slice_contains_line($travel)
&& (!defined $self->layer->upper_layer || $self->layer->upper_layer->slices->contains_line($travel)))))
|| (defined $role && $role == EXTR_ROLE_SUPPORTMATERIAL && $self->layer->support_islands->contains_line($travel))
) {
# Just perform a straight travel move without any retraction.