mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
parent
1071b556cb
commit
f9446b9c6e
5 changed files with 79 additions and 40 deletions
|
@ -10,7 +10,7 @@ our $Options = {
|
|||
# output options
|
||||
'output_filename_format' => {
|
||||
label => 'Output filename format',
|
||||
cli => 'output=s',
|
||||
cli => 'output-filename-format=s',
|
||||
type => 's',
|
||||
},
|
||||
|
||||
|
@ -296,6 +296,14 @@ sub set {
|
|||
${"Slic3r::$opt_key"} = $value;
|
||||
}
|
||||
|
||||
sub serialize {
|
||||
my $class = @_ == 2 ? shift : undef;
|
||||
my ($opt_key) = @_;
|
||||
return $Options->{$opt_key}{serialize}
|
||||
? $Options->{$opt_key}{serialize}->(get($opt_key))
|
||||
: get($opt_key);
|
||||
}
|
||||
|
||||
sub save {
|
||||
my $class = shift;
|
||||
my ($file) = @_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue