From d337573efe011d95962fc93a31a4c998f0165d68 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Wed, 7 Jun 2023 13:29:14 +0200 Subject: [PATCH] Add 'mainsail' -> 'moonraker' substitution so profiles don't break after people upgrade to the new version --- src/libslic3r/PrintConfig.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 9eda4078c..ca8aa76d3 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -4214,6 +4214,9 @@ void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &va else if (value == "marlinfirmware") // the "new" marlin firmware flavor used to be called "marlinfirmware" for some time during PrusaSlicer 2.4.0-alpha development. value = "marlin2"; + } else if (opt_key == "host_type" && value == "mainsail") { + // the "mainsail" key (introduced in 2.6.0-alpha6) was renamed to "moonraker" (in 2.6.0-rc1). + value = "moonraker"; } else if (opt_key == "fill_density" && value.find("%") == std::string::npos) { try { // fill_density was turned into a percent value