mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 22:55:53 +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 = "";
|
opt_key = "";
|
||||||
return;
|
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) {
|
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