diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libslic3r/PrintConfig.cpp | 7 | ||||
-rw-r--r-- | src/slic3r/GUI/Tab.cpp | 10 |
2 files changed, 15 insertions, 2 deletions
diff --git a/src/libslic3r/PrintConfig.cpp b/src/libslic3r/PrintConfig.cpp index 64bd620c1..031a6d1f1 100644 --- a/src/libslic3r/PrintConfig.cpp +++ b/src/libslic3r/PrintConfig.cpp @@ -5271,6 +5271,9 @@ void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &va float v = boost::lexical_cast<float>(value); if (v > 0) value = boost::lexical_cast<std::string>(-v); + } + else if ("elefant_foot_min_width" == opt_key) { + opt_key = "elephant_foot_min_width"; } else if (opt_key == "thumbnails") { if (value.empty()) value = "0x0,0x0"; @@ -5537,8 +5540,8 @@ void PrintConfigDef::to_prusa(t_config_option_key& opt_key, std::string& value, value = "0"; } } - } else if ("elefant_foot_min_width" == opt_key) { - opt_key = "elephant_foot_min_width"; + } else if ("elephant_foot_min_width" == opt_key) { + opt_key = "elefant_foot_min_width"; } else if("first_layer_acceleration" == opt_key || "infill_acceleration" == opt_key || "bridge_acceleration" == opt_key || "default_acceleration" == opt_key || "overhangs_speed" == opt_key || "perimeter_acceleration" == opt_key){ if (value.find("%") != std::string::npos) value = "0"; diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index a8fcce485..43d0392d1 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -1953,6 +1953,16 @@ bool Tab::create_pages(std::string setting_type_name, int idx_page) }; current_group->append_line(current_line); current_page->descriptions.push_back("volumetric_speed"); + } else if(boost::starts_with(full_line, "support_object_elevation_description")) { + TabSLAPrint* tab = nullptr; + if ((tab = dynamic_cast<TabSLAPrint*>(this)) == nullptr) continue; + Line line{ "", "" }; + line.full_width = 1; + line.widget = [this, tab](wxWindow* parent) { + return description_line_widget(parent, &(tab->m_support_object_elevation_description_line)); + }; + current_group->append_line(line); + current_page->descriptions.push_back("support_object_elevation"); } else if (boost::starts_with(full_line, "print_host_upload_description")) { TabPrinter* tab = nullptr; if ((tab = dynamic_cast<TabPrinter*>(this)) == nullptr) continue; |