From 73a661e6c159ac0e8310438b15733f3a676a65e5 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 5 Feb 2013 19:41:56 +0100 Subject: [PATCH] shortest_path() in MotionPlanner was actually correctly named shortest_path() --- lib/Slic3r/GCode.pm | 2 +- lib/Slic3r/GCode/MotionPlanner.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm index 7e98a26e2..3633c3c5b 100644 --- a/lib/Slic3r/GCode.pm +++ b/lib/Slic3r/GCode.pm @@ -270,7 +270,7 @@ sub travel_to { my $mp = shift; return join '', map $self->G0($_->[B], undef, 0, $comment || ""), - $mp->chained_path($self->last_pos, $point)->lines; + $mp->shortest_path($self->last_pos, $point)->lines; }; if ($self->new_object) { diff --git a/lib/Slic3r/GCode/MotionPlanner.pm b/lib/Slic3r/GCode/MotionPlanner.pm index f6ea5f77a..d55faeb2a 100644 --- a/lib/Slic3r/GCode/MotionPlanner.pm +++ b/lib/Slic3r/GCode/MotionPlanner.pm @@ -217,7 +217,7 @@ sub find_node { } } -sub chained_path { +sub shortest_path { my $self = shift; my ($from, $to) = @_;