From 5a382f0200bad648e93e2e2f15a1857e08df2b32 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 24 Nov 2014 16:30:57 +0100 Subject: [PATCH] Bugfix: Slic3r::GCode::Reader did not parse correctly when use_relative_e_distances was enabled. #2033 --- lib/Slic3r/GCode/Reader.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Slic3r/GCode/Reader.pm b/lib/Slic3r/GCode/Reader.pm index 237728d00..ae436b854 100644 --- a/lib/Slic3r/GCode/Reader.pm +++ b/lib/Slic3r/GCode/Reader.pm @@ -50,6 +50,7 @@ sub parse { if ($command =~ /^G[01]$/) { foreach my $axis (@AXES) { if (exists $args{$axis}) { + $self->$axis = 0 if $axis eq 'E' && $self->config->use_relative_e_distances; $info{"dist_$axis"} = $args{$axis} - $self->$axis; $info{"new_$axis"} = $args{$axis}; } else {