mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-18 21:49:04 -07:00
Comments are now disabled by default, new --gcode-comments option to enable them
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user