mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-06 05:24:01 -06:00
Comments are now disabled by default, new --gcode-comments option to enable them
This commit is contained in:
parent
3d213069a6
commit
d346bc02cc
5 changed files with 13 additions and 5 deletions
|
@ -46,6 +46,11 @@ our $Options = {
|
|||
cli => 'g0',
|
||||
type => 'bool',
|
||||
},
|
||||
'gcode_comments' => {
|
||||
label => 'Verbose GCODE (comments)',
|
||||
cli => 'gcode-comments',
|
||||
type => 'bool',
|
||||
},
|
||||
|
||||
# filament options
|
||||
'filament_diameter' => {
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue