From 1dc5f5531e8d0e1ef70b6a72b320d2489416859e Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Tue, 2 Jun 2015 22:05:53 +0200 Subject: [PATCH] If --save is called without any other config option, export full default settings. #2110 --- slic3r.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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