Limit only_retract_when_crossing_perimeters to travel moves that are completely enclosed in the upper layer's slices so that we avoid visible traces on top layers. #1091

This commit is contained in:
Alessandro Ranellucci 2013-06-03 12:25:32 +02:00
parent 7134df4638
commit 81bae56e92
2 changed files with 8 additions and 2 deletions

View file

@ -54,6 +54,12 @@ sub support_material_contact_z {
return $self->print_z - ($self->height - $self->support_material_contact_height) / &Slic3r::SCALING_FACTOR;
}
sub upper_layer_slices {
my $self = shift;
my $upper_layer = $self->object->layers->[ $self->id + 1 ] or return [];
return $upper_layer->slices;
sub region {
my $self = shift;
my ($region_id) = @_;