mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 14:25:56 +08:00
fix loading prusa conf
This commit is contained in:
parent
b6891a036d
commit
8b7aa58cf8
@ -5268,6 +5268,14 @@ void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &va
|
||||
opt_key = "";
|
||||
return;
|
||||
}
|
||||
|
||||
//prusa
|
||||
if ("gcode_flavor" == opt_key) {
|
||||
if ("reprap" == value)
|
||||
value = "sprinter";
|
||||
else if ("reprapfirmware" == value)
|
||||
value = "reprap";
|
||||
}
|
||||
}
|
||||
|
||||
void PrintConfigDef::to_prusa(t_config_option_key& opt_key, std::string& value, const DynamicConfig& all_conf) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user