mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
Bugfix: --avoid-crossing-perimeters was crashing when processing empty layers
This commit is contained in:
@@ -224,6 +224,8 @@ sub shortest_path {
|
|||||||
my $self = shift;
|
my $self = shift;
|
||||||
my ($from, $to) = @_;
|
my ($from, $to) = @_;
|
||||||
|
|
||||||
|
return Slic3r::Polyline->new($from, $to) if !@{$self->islands};
|
||||||
|
|
||||||
# find nearest nodes
|
# find nearest nodes
|
||||||
my $new_from = $self->find_node($from, $to);
|
my $new_from = $self->find_node($from, $to);
|
||||||
my $new_to = $self->find_node($to, $from);
|
my $new_to = $self->find_node($to, $from);
|
||||||
|
|||||||
Reference in New Issue
Block a user