From 8172bcb772caa6b5d40e40efa5b07401e345245b Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 6 Nov 2011 20:24:42 +0100 Subject: [PATCH] Bugfix: G2/G3 I and J coordinates were wrong. #30 --- lib/Slic3r/Extruder.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Extruder.pm b/lib/Slic3r/Extruder.pm index c58eab823..dee041772 100644 --- a/lib/Slic3r/Extruder.pm +++ b/lib/Slic3r/Extruder.pm @@ -170,13 +170,13 @@ sub G2_G3 { $gcode .= sprintf " X%.${dec}f Y%.${dec}f", ($point->x * $Slic3r::resolution) + $self->shift_x, ($point->y * $Slic3r::resolution) + $self->shift_y; #** - $self->last_pos($point); # XY distance of the center from the start position $gcode .= sprintf " I%.${dec}f J%.${dec}f", ($point->[X] - $self->last_pos->[X]) * $Slic3r::resolution + $self->shift_x, ($point->[Y] - $self->last_pos->[Y]) * $Slic3r::resolution + $self->shift_y; + $self->last_pos($point); return $self->_Gx($gcode, $e, $comment); }