Comments are now disabled by default, new --gcode-comments option to enable them

This commit is contained in:
Alessandro Ranellucci 2011-12-14 19:49:21 +01:00
parent 3d213069a6
commit d346bc02cc
5 changed files with 13 additions and 5 deletions

View file

@ -292,7 +292,7 @@ sub _Gx {
$gcode .= sprintf " %s%.5f", $Slic3r::extrusion_axis, $self->extrusion_distance;
}
$gcode .= sprintf " ; %s", $comment if $comment;
$gcode .= sprintf " ; %s", $comment if $comment && $Slic3r::gcode_comments;
return "$gcode\n";
}