From a7ff17d99cca052012b9944c7f3163afa915af36 Mon Sep 17 00:00:00 2001 From: Arthur Date: Thu, 15 Dec 2022 15:59:50 +0800 Subject: [PATCH] FIX: add support type normal and tree in handle_legacy If don't do this, laoding old 3mf generated by version 1.3 or lower will have problem, e.g. normal support will be replaced with normal(auto). Change-Id: Iaa8e1f8badaacc74479d99a6e4153d8850945279 --- src/libslic3r/PrintConfig.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 53dbf415c7..852d48165e 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -3812,6 +3812,10 @@ void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &va // old file "0" is None, "2" is Traditional // new file "0" is Traditional, erase "2" value = "0"; + } else if (opt_key == "support_type" && value == "normal") { + value = "normal(manual)"; + } else if (opt_key == "support_type" && value == "tree") { + value = "tree(manual)"; } else if (opt_key == "different_settings_to_system") { std::string copy_value = value; copy_value.erase(std::remove(copy_value.begin(), copy_value.end(), '\"'), copy_value.end()); // remove '"' in string