diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2015-06-02 23:05:53 +0300 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2015-06-02 23:05:53 +0300 |
commit | 1dc5f5531e8d0e1ef70b6a72b320d2489416859e (patch) | |
tree | 75b08ac609856999596ee4b7062be9e30c2dbc24 /slic3r.pl | |
parent | 6018dafc461be44caa6573e2167c103973a9c977 (diff) |
If --save is called without any other config option, export full default settings. #2110
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-x | slic3r.pl | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -82,7 +82,11 @@ foreach my $c (@external_configs, Slic3r::Config->new_from_cli(%cli_options)) { # save configuration if ($opt{save}) { - $cli_config->save($opt{save}); + if (@{$cli_config->get_keys} > 0) { + $cli_config->save($opt{save}); + } else { + Slic3r::Config->new_from_defaults->save($opt{save}); + } } # apply command line config on top of default config |