Minor cleanup in GCode.pm

This commit is contained in:
Alessandro Ranellucci 2014-11-23 20:16:51 +01:00
parent 634bc09e2c
commit 55888ace75

View file

@ -4,10 +4,8 @@ use Moo;
use List::Util qw(min max first); use List::Util qw(min max first);
use Slic3r::ExtrusionLoop ':roles'; use Slic3r::ExtrusionLoop ':roles';
use Slic3r::ExtrusionPath ':roles'; use Slic3r::ExtrusionPath ':roles';
use Slic3r::Flow ':roles';
use Slic3r::Geometry qw(epsilon scale unscale PI X Y B); use Slic3r::Geometry qw(epsilon scale unscale PI X Y B);
use Slic3r::Geometry::Clipper qw(union_ex offset_ex); use Slic3r::Geometry::Clipper qw(union_ex);
use Slic3r::Surface ':types';
# Origin of print coordinates expressed in unscaled G-code coordinates. # Origin of print coordinates expressed in unscaled G-code coordinates.
# This affects the input arguments supplied to the extrude*() and travel_to() # This affects the input arguments supplied to the extrude*() and travel_to()
@ -90,7 +88,6 @@ sub change_layer {
my $gcode = ""; my $gcode = "";
if (defined $self->layer_count) { if (defined $self->layer_count) {
# TODO: cap this to 99% and add an explicit M73 P100 in the end G-code
$gcode .= $self->writer->update_progress($self->_layer_index, $self->layer_count); $gcode .= $self->writer->update_progress($self->_layer_index, $self->layer_count);
} }