mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
New --gcode-flavor option. extrusion_axis, use_relative_e_distances options hidden and implied. #158
This commit is contained in:
parent
23156f0abe
commit
615bcb27dd
6 changed files with 28 additions and 17 deletions
|
@ -40,6 +40,13 @@ our $Options = {
|
|||
serialize => sub { join ',', @{$_[0]} },
|
||||
deserialize => sub { [ split /,/, $_[0] ] },
|
||||
},
|
||||
'gcode_flavor' => {
|
||||
label => 'G-code flavor',
|
||||
cli => 'gcode-flavor=s',
|
||||
type => 'select',
|
||||
values => [qw(reprap teacup makerbot mach3 no-extrusion)],
|
||||
labels => ['RepRap (Marlin/Sprinter)', 'Teacup', 'MakerBot', 'Mach3/EMC', 'No extrusion'],
|
||||
},
|
||||
'use_relative_e_distances' => {
|
||||
label => 'Use relative E distances',
|
||||
cli => 'use-relative-e-distances',
|
||||
|
@ -520,6 +527,9 @@ sub validate {
|
|||
die "Invalid value for --bridge-flow-ratio\n"
|
||||
if $Slic3r::bridge_flow_ratio <= 0;
|
||||
|
||||
# G-code flavors
|
||||
$Slic3r::extrusion_axis = 'A' if $Slic3r::gcode_flavor eq 'mach3';
|
||||
|
||||
# legacy with existing config files
|
||||
$Slic3r::small_perimeter_speed ||= $Slic3r::perimeter_speed;
|
||||
$Slic3r::bridge_speed ||= $Slic3r::infill_speed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue