From 3a8f4015d6babf5e2f6f87db962aff4366bec57a Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sun, 24 Jun 2012 21:05:44 +0200 Subject: [PATCH] Don't reset E when the makerbot flavor is selected --- 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 2e357cac7..1ac5ed8a8 100644 --- a/lib/Slic3r/Extruder.pm +++ b/lib/Slic3r/Extruder.pm @@ -242,7 +242,7 @@ sub retract { # reset extrusion distance during retracts # this makes sure we leave sufficient precision in the firmware - if (!$Slic3r::use_relative_e_distances && $Slic3r::gcode_flavor ne 'mach3') { + if (!$Slic3r::use_relative_e_distances && $Slic3r::gcode_flavor !~ /^(?:mach3|makerbot)$/) { $gcode .= "G92 " . $Slic3r::extrusion_axis . "0\n" if $Slic3r::extrusion_axis; $self->extrusion_distance(0); }