From b5cba48e550f60731f319c4c7ba61947d2af31fb Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 3 Mar 2012 21:27:33 +0100 Subject: [PATCH] Put the relative E checkbox back in the GUI and disable M82/M83 for MakerBot --- lib/Slic3r/GUI/SkeinPanel.pm | 2 +- lib/Slic3r/Print.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Slic3r/GUI/SkeinPanel.pm b/lib/Slic3r/GUI/SkeinPanel.pm index acdc59c95..08551a26c 100644 --- a/lib/Slic3r/GUI/SkeinPanel.pm +++ b/lib/Slic3r/GUI/SkeinPanel.pm @@ -21,7 +21,7 @@ sub new { my %panels = ( printer => { title => 'Printer', - options => [qw(nozzle_diameter print_center z_offset gcode_flavor g0)], + options => [qw(nozzle_diameter print_center z_offset gcode_flavor use_relative_e_distances g0)], }, filament => { title => 'Filament', diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index e36927875..5dcd65166 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -595,7 +595,7 @@ sub export_gcode { if $Slic3r::first_layer_temperature && $Slic3r::gcode_flavor ne 'makerbot'; print $fh "G90 ; use absolute coordinates\n"; print $fh "G21 ; set units to millimeters\n"; - if ($Slic3r::gcode_flavor =~ /^(?:reprap|teacup|makerbot)$/) { + if ($Slic3r::gcode_flavor =~ /^(?:reprap|teacup)$/) { printf $fh "G92 %s0 ; reset extrusion distance\n", $Slic3r::extrusion_axis; if ($Slic3r::gcode_flavor =~ /^(?:reprap|makerbot)$/) { if ($Slic3r::use_relative_e_distances) {