1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-14 08:34:26 +00:00

Minor cleanup and refactoring in Slic3r::GCode

This commit is contained in:
Alessandro Ranellucci
2014-10-25 11:00:08 +02:00
parent 36c1a9d20c
commit e29569a2cd
2 changed files with 8 additions and 11 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ sub process_layer {
# set new layer - this will change Z and force a retraction if retract_layer_change is enabled
$gcode .= $self->gcodegen->change_layer($layer);
$gcode .= $self->gcodegen->placeholder_parser->process($self->print->config->layer_gcode, {
layer_num => $self->gcodegen->layer->id,
layer_num => $layer->id,
}) . "\n" if $self->print->config->layer_gcode;
# extrude skirt