Fix fatal error caused by recent refactorings
This commit is contained in:
parent
1f4706f02f
commit
d8c192ae05
@ -131,7 +131,7 @@ sub extrude_path {
|
|||||||
{
|
{
|
||||||
my $travel = Slic3r::Line->new($self->last_pos, $path->points->[0]);
|
my $travel = Slic3r::Line->new($self->last_pos, $path->points->[0]);
|
||||||
if ($travel->length >= scale $self->extruder->retract_before_travel) {
|
if ($travel->length >= scale $self->extruder->retract_before_travel) {
|
||||||
if (!$Slic3r::Config->only_retract_when_crossing_perimeters || $path->role != EXTR_ROLE_FILL || !first { $_->expolygon->encloses_line($travel, scaled_epsilon) } @{$self->layer->slices}) {
|
if (!$Slic3r::Config->only_retract_when_crossing_perimeters || $path->role != EXTR_ROLE_FILL || !first { $_->encloses_line($travel, scaled_epsilon) } @{$self->layer->slices}) {
|
||||||
$gcode .= $self->retract(travel_to => $path->points->[0]);
|
$gcode .= $self->retract(travel_to => $path->points->[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user