mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 03:07:55 -06:00
Minor cleanups
This commit is contained in:
parent
81085433fd
commit
b61b543243
5 changed files with 2 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue