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

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2014-04-05 12:18:00 +0400
committerAlessandro Ranellucci <aar@cpan.org>2014-04-05 12:18:00 +0400
commitd2a619496029fa38479c53a2d56c07d835d2fde9 (patch)
treef560eface731a56aea744f95591e7cac329f5038 /slic3r.pl
parent6f3844c1ba87610a29356e91081811c35d815ddc (diff)
Fix the 'extruder' behavior in CLI and test that Print::Simple accepts an incomplete DynamicConfig object
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-xslic3r.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/slic3r.pl b/slic3r.pl
index 284f91694..f9e6f6372 100755
--- a/slic3r.pl
+++ b/slic3r.pl
@@ -72,7 +72,10 @@ if ($opt{load}) {
# merge configuration
my $config = Slic3r::Config->new_from_defaults;
-$config->apply($_) for @external_configs, $cli_config;
+foreach my $c (@external_configs, $cli_config) {
+ $c->normalize; # expand shortcuts before applying, otherwise destination values would be already filled with defaults
+ $config->apply($c);
+}
# save configuration
if ($opt{save}) {