Bugfix: when an external config was selected in any section, exported settings didn't reflect other sections properly

This commit is contained in:
Alessandro Ranellucci 2012-08-08 19:36:34 +02:00
parent 2f2bc8210a
commit 4fcecf5ef6
3 changed files with 21 additions and 12 deletions
lib/Slic3r/GUI

View file

@ -210,7 +210,8 @@ sub get_preset_config {
}
# apply preset values on top of defaults
$config->apply(Slic3r::Config->load($preset->{file}));
my $external_config = Slic3r::Config->load($preset->{file});
$config->set($_, $external_config->get($_)) for @{$self->{options}};
}
return $config;