mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 20:51:23 -07:00
Reset E and compensate retraction after changing extruder
This commit is contained in:
parent
96574e601f
commit
3c00573805
2 changed files with 14 additions and 7 deletions
|
|
@ -530,8 +530,7 @@ sub write_gcode {
|
|||
print $fh "G90 ; use absolute coordinates\n";
|
||||
print $fh "G21 ; set units to millimeters\n";
|
||||
if ($Slic3r::gcode_flavor =~ /^(?:reprap|teacup)$/) {
|
||||
printf $fh "G92 %s0 ; reset extrusion distance\n", $Slic3r::extrusion_axis
|
||||
if $Slic3r::extrusion_axis && !$Slic3r::use_relative_e_distances;
|
||||
printf $fh $gcodegen->reset_e;
|
||||
if ($Slic3r::gcode_flavor =~ /^(?:reprap|makerbot)$/) {
|
||||
if ($Slic3r::use_relative_e_distances) {
|
||||
print $fh "M83 ; use relative distances for extrusion\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue