Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorremi durand <remi-j.durand@thalesgroup.com>2021-07-02 18:52:15 +0300
committerremi durand <remi-j.durand@thalesgroup.com>2021-07-05 21:56:07 +0300
commit0baeeedf74ea351da8b80fa7f2a63a225f66f025 (patch)
treea042b3c80184b3ec6e50f0c2c8791c219dbae1cc /src
parent34b8d0634ab14bc249c2ef626c8373a4a8262fbd (diff)
Add missing items from sla_print
also fix a prusa<->susi setting name
Diffstat (limited to 'src')
-rw-r--r--src/libslic3r/PrintConfig.cpp7
-rw-r--r--src/slic3r/GUI/Tab.cpp10
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;