mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-15 13:42:40 -07:00
Comments are now disabled by default, new --gcode-comments option to enable them
This commit is contained in:
@@ -41,6 +41,7 @@ our $extrusion_axis = 'E';
|
||||
our $z_offset = 0;
|
||||
our $gcode_arcs = 0;
|
||||
our $g0 = 0;
|
||||
our $gcode_comments = 0;
|
||||
|
||||
# filament options
|
||||
our $filament_diameter = 3; # mm
|
||||
|
||||
@@ -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