From 8b7aa58cf8024ca717b02c0e85705d787c4d57e1 Mon Sep 17 00:00:00 2001 From: remi durand Date: Sat, 1 May 2021 11:58:14 +0200 Subject: [PATCH] fix loading prusa conf --- src/libslic3r/PrintConfig.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 5d507557d..aa95da2ad 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -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) {