Add missing items from sla_print

also fix a prusa<->susi setting name
This commit is contained in:
remi durand 2021-07-02 17:52:15 +02:00
parent 34b8d0634a
commit 0baeeedf74
3 changed files with 25 additions and 3 deletions

View File

@ -13,6 +13,8 @@ group:Support head
setting:support_head_width
group:Support pillar
setting:support_pillar_diameter
setting:support_small_pillar_diameter_percent
setting:support_max_bridges_on_pillar
setting:support_pillar_connection_mode
setting:support_buildplate_only
# TODO: This parameter is not used at the moment.
@ -21,8 +23,8 @@ group:Support pillar
setting:support_base_height
setting:support_base_safety_distance
# Mirrored parameter from Pad page for toggling elevation on the same page
setting:pad_around_object
setting:support_object_elevation
support_object_elevation_description
group:Connection of the support sticks and junctions
setting:support_critical_angle
setting:support_max_bridge_length
@ -48,6 +50,13 @@ group:Pad
setting:pad_object_connector_width
setting:pad_object_connector_penetration
page:Hollowing:hollowing
group:Hollowing
setting:hollowing_enable
setting:hollowing_min_thickness
setting:hollowing_quality
setting:hollowing_closing_distance
page:Advanced:wrench
group:Slicing
setting:slice_closing_radius

View File

@ -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";

View File

@ -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;