Put the relative E checkbox back in the GUI and disable M82/M83 for MakerBot

degen-loop-screen
Alessandro Ranellucci 2012-03-03 21:27:33 +01:00
parent e8c64924db
commit b5cba48e55
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

@ -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) {