mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-07 22:14:00 -06:00
New --no-extrusion option to disable E values
This commit is contained in:
parent
76dfda3b09
commit
b123194522
6 changed files with 10 additions and 2 deletions
|
@ -22,6 +22,10 @@ our $Options = {
|
|||
label => 'Use relative E distances',
|
||||
type => 'bool',
|
||||
},
|
||||
'no_extrusion' => {
|
||||
label => 'No extrusion',
|
||||
type => 'bool',
|
||||
},
|
||||
'z_offset' => {
|
||||
label => 'Z offset',
|
||||
type => 'f',
|
||||
|
|
|
@ -222,7 +222,7 @@ sub _Gx {
|
|||
}
|
||||
|
||||
# output extrusion distance
|
||||
if ($e) {
|
||||
if ($e && !$Slic3r::no_extrusion) {
|
||||
$self->extrusion_distance(0) if $Slic3r::use_relative_e_distances;
|
||||
$self->extrusion_distance($self->extrusion_distance + $e);
|
||||
$gcode .= sprintf " E%.5f", $self->extrusion_distance;
|
||||
|
|
|
@ -17,7 +17,7 @@ sub new {
|
|||
my %panels = (
|
||||
printer => Slic3r::GUI::OptionsGroup->new($self,
|
||||
title => 'Printer',
|
||||
options => [qw(nozzle_diameter print_center use_relative_e_distances z_offset)],
|
||||
options => [qw(nozzle_diameter print_center use_relative_e_distances no_extrusion z_offset)],
|
||||
),
|
||||
filament => Slic3r::GUI::OptionsGroup->new($self,
|
||||
title => 'Filament',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue