From d58a741d996f5b0efe210137ea9646a190b1ee79 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 1 May 2012 15:06:19 +0200 Subject: [PATCH] Put layer number in G-code comments. #327 --- lib/Slic3r/Extruder.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Extruder.pm b/lib/Slic3r/Extruder.pm index a7428bc5e..b04546971 100644 --- a/lib/Slic3r/Extruder.pm +++ b/lib/Slic3r/Extruder.pm @@ -45,7 +45,7 @@ sub change_layer { my $gcode = ""; $gcode .= $self->retract(move_z => $z); - $gcode .= $self->G0(undef, $z, 0, 'move to next layer') + $gcode .= $self->G0(undef, $z, 0, 'move to next layer (' . $layer->id . ')') if $self->z != $z; $gcode .= Slic3r::Config->replace_options($Slic3r::layer_gcode) . "\n"