mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 06:19:00 +08:00
Minor cleanup in GCode.pm
This commit is contained in:
parent
634bc09e2c
commit
55888ace75
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user