Bugfix: retraction was still not working correctly at tool change

This commit is contained in:
Alessandro Ranellucci 2012-08-22 20:31:03 +02:00
parent edfdf236da
commit b35c41c1a3
2 changed files with 18 additions and 10 deletions

View file

@ -569,8 +569,13 @@ 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 the first extruder
# (TODO: make this consistent in multi-head setups)
# 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