From 8c40cefe1ed8dbaecafc02282ba40326d9171dbc Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Wed, 5 Jun 2013 17:12:34 +0200 Subject: [PATCH] Also use G1 when traveling with avoid_crossing_perimeters enabled --- lib/Slic3r/GCode.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r/GCode.pm b/lib/Slic3r/GCode.pm index b4a8d6b2f..b7f855e83 100644 --- a/lib/Slic3r/GCode.pm +++ b/lib/Slic3r/GCode.pm @@ -339,7 +339,8 @@ sub _plan { # append the actual path and return $self->speed('travel'); - $gcode .= join '', map $self->G0($_->[B], undef, 0, $comment || ""), @travel; + # use G1 because we rely on paths being straight (G0 may make round paths) + $gcode .= join '', map $self->G1($_->[B], undef, 0, $comment || ""), @travel; return $gcode; }