From 47c5d410ea52e2258b3c28a0316b72fce23f1c9f Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Thu, 6 Sep 2012 10:44:48 +0200 Subject: [PATCH] Remove the initial retraction compensation. Not only it is not very good for multi-head setups, but it also caused wrong first layer Z when lift was enabled. #655 --- lib/Slic3r/Print.pm | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 397bc9be..f9aac150 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -574,15 +574,6 @@ sub write_gcode { print $fh $gcodegen->set_tool(0); print $fh $gcodegen->set_fan(0, 1) if $Slic3r::Config->cooling && $Slic3r::Config->disable_fan_first_layers; - # this spits out some platic at start from each extruder when they are first used; - # the primary extruder will compensate by the normal retraction length, while - # the others will compensate for their toolchange length + restart extra. - # this is a temporary solution as all extruders should use some kind of skirt - # to be put into a consistent state. - $_->retracted($_->retract_length_toolchange + $_->retract_restart_extra_toolchange) - for @{$Slic3r::extruders}[1 .. $#{$Slic3r::extruders}]; - $gcodegen->retract; - # write start commands to file printf $fh $gcodegen->set_bed_temperature($Slic3r::Config->first_layer_bed_temperature, 1), if $Slic3r::Config->first_layer_bed_temperature && $Slic3r::Config->start_gcode !~ /M190/i;