mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Make tests happy
This commit is contained in:
parent
5571144c0e
commit
b14290b9f6
10 changed files with 19 additions and 14 deletions
|
@ -306,7 +306,7 @@ sub travel_to {
|
|||
my $travel = Slic3r::Polyline->new($self->last_pos, $point);
|
||||
|
||||
# check whether a straight travel move would need retraction
|
||||
my $needs_retraction = $self->needs_retraction($travel, $role);
|
||||
my $needs_retraction = $self->needs_retraction($travel, $role // EXTR_ROLE_NONE);
|
||||
|
||||
# if a retraction would be needed, try to use avoid_crossing_perimeters to plan a
|
||||
# multi-hop travel path inside the configuration space
|
||||
|
@ -316,7 +316,7 @@ sub travel_to {
|
|||
$travel = $self->avoid_crossing_perimeters->travel_to($self, $point);
|
||||
|
||||
# check again whether the new travel path still needs a retraction
|
||||
$needs_retraction = $self->needs_retraction($travel, $role);
|
||||
$needs_retraction = $self->needs_retraction($travel, $role // EXTR_ROLE_NONE);
|
||||
}
|
||||
|
||||
# Re-allow avoid_crossing_perimeters for the next travel moves
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue