Minor cleanups

This commit is contained in:
Alessandro Ranellucci 2011-09-26 19:53:01 +02:00
parent 81085433fd
commit b61b543243
5 changed files with 2 additions and 29 deletions

View file

@ -174,13 +174,11 @@ sub export_gcode {
print $fh "M82 ; use absolute distances for extrusion\n";
}
# make up a subroutine to generate G1 commands
# set up our extruder object
my $extruder = Slic3r::Extruder->new(
# calculate X,Y shift to center print around specified origin
shift_x => $Slic3r::print_center->[X] - ($self->x_length * $Slic3r::resolution / 2),
shift_y => $Slic3r::print_center->[Y] - ($self->y_length * $Slic3r::resolution / 2),
);
# write gcode commands layer by layer