diff options
author | supermerill <merill@free.fr> | 2022-07-15 19:54:11 +0300 |
---|---|---|
committer | supermerill <merill@free.fr> | 2022-08-10 21:56:25 +0300 |
commit | 5c73d9d35e3a0c55045917b04e435050d23ff8c8 (patch) | |
tree | eb5850ccfced60c3b3bbb4aca64f192fa9e7102b /src/libslic3r/PrintConfig.cpp | |
parent | e343bc7c6f7d9831bf2969faa726afc497aa3793 (diff) |
Fix config loading for brim_offset
Added a piece of code into handle_legacy to check for aliases.
'.mf3 files won't open 2.4.58.3' #2939
Diffstat (limited to 'src/libslic3r/PrintConfig.cpp')
-rw-r--r-- | src/libslic3r/PrintConfig.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 845a2239a..47901e9eb 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -6979,6 +6979,16 @@ void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &va } if (! print_config_def.has(opt_key)) { + //check the aliases + for(const auto& entry : print_config_def.options) { + for (const std::string& alias : entry.second.aliases) { + if (alias == opt_key) { + // translate + opt_key = entry.first; + return; + } + } + } opt_key = ""; return; } |