New option to shift Z coordinates

This commit is contained in:
Alessandro Ranellucci 2011-09-26 15:59:03 +02:00
parent 92eb3ea365
commit 8d13d4b21e
3 changed files with 5 additions and 1 deletions

View file

@ -187,7 +187,7 @@ sub export_gcode {
foreach my $layer (@{ $self->layers }) {
# go to layer
printf $fh $extruder->move_z($layer->z * $Slic3r::resolution);
printf $fh $extruder->move_z($Slic3r::z_offset + $layer->z * $Slic3r::resolution);
# extrude skirts
printf $fh $extruder->extrude_loop($_, 'skirt') for @{ $layer->skirts };