Legacy conversion of "monotonous" to "monotonic"

This commit is contained in:
Vojtech Bubnik 2020-10-07 09:38:15 +02:00
parent d4309d9fa7
commit 26b95e3c3c

View file

@ -3183,6 +3183,10 @@ void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &va
#endif /* HAS_PRESSURE_EQUALIZER */
};
// In PrusaSlicer 2.3.0-alpha0 the "monotonous" infill was introduced, which was later renamed to "monotonic".
if (value == "monotonous" && (opt_key == "top_fill_pattern" || opt_key == "bottom_fill_pattern" || opt_key == "fill_pattern"))
value = "monotonic";
if (ignore.find(opt_key) != ignore.end()) {
opt_key = "";
return;