Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2015-06-02 23:05:53 +0300
committerAlessandro Ranellucci <aar@cpan.org>2015-06-02 23:05:53 +0300
commit1dc5f5531e8d0e1ef70b6a72b320d2489416859e (patch)
tree75b08ac609856999596ee4b7062be9e30c2dbc24 /slic3r.pl
parent6018dafc461be44caa6573e2167c103973a9c977 (diff)
If --save is called without any other config option, export full default settings. #2110
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-xslic3r.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/slic3r.pl b/slic3r.pl
index a5957a98f..0fbd3bbba 100755
--- a/slic3r.pl
+++ b/slic3r.pl
@@ -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