mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
Removed the
"The Wipe Tower currently supports only:\n" "- first layer height 0.2mm\n" "- layer height from 0.15mm to 0.35mm\n" message as the new wipe tower is more generic.
This commit is contained in:
parent
a05c440263
commit
98785e47b1
1 changed files with 0 additions and 23 deletions
|
@ -1015,29 +1015,6 @@ void TabPrint::update()
|
||||||
on_value_change("fill_density", fill_density);
|
on_value_change("fill_density", fill_density);
|
||||||
}
|
}
|
||||||
|
|
||||||
auto first_layer_height = m_config->option<ConfigOptionFloatOrPercent>("first_layer_height")->value;
|
|
||||||
auto layer_height = m_config->opt_float("layer_height");
|
|
||||||
if (m_config->opt_bool("wipe_tower") &&
|
|
||||||
(first_layer_height != 0.2 || layer_height < 0.15 || layer_height > 0.35)) {
|
|
||||||
wxString msg_text = _(L("The Wipe Tower currently supports only:\n"
|
|
||||||
"- first layer height 0.2mm\n"
|
|
||||||
"- layer height from 0.15mm to 0.35mm\n"
|
|
||||||
"\nShall I adjust those settings in order to enable the Wipe Tower?"));
|
|
||||||
auto dialog = new wxMessageDialog(parent(), msg_text, _(L("Wipe Tower")), wxICON_WARNING | wxYES | wxNO);
|
|
||||||
DynamicPrintConfig new_conf = *m_config;
|
|
||||||
if (dialog->ShowModal() == wxID_YES) {
|
|
||||||
const auto &val = *m_config->option<ConfigOptionFloatOrPercent>("first_layer_height");
|
|
||||||
auto percent = val.percent;
|
|
||||||
new_conf.set_key_value("first_layer_height", new ConfigOptionFloatOrPercent(0.2, percent));
|
|
||||||
|
|
||||||
if (m_config->opt_float("layer_height") < 0.15) new_conf.set_key_value("layer_height", new ConfigOptionFloat(0.15));
|
|
||||||
if (m_config->opt_float("layer_height") > 0.35) new_conf.set_key_value("layer_height", new ConfigOptionFloat(0.35));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
new_conf.set_key_value("wipe_tower", new ConfigOptionBool(false));
|
|
||||||
load_config(new_conf);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_config->opt_bool("wipe_tower") && m_config->opt_bool("support_material") &&
|
if (m_config->opt_bool("wipe_tower") && m_config->opt_bool("support_material") &&
|
||||||
m_config->opt_float("support_material_contact_distance") > 0. &&
|
m_config->opt_float("support_material_contact_distance") > 0. &&
|
||||||
(m_config->opt_int("support_material_extruder") != 0 || m_config->opt_int("support_material_interface_extruder") != 0)) {
|
(m_config->opt_int("support_material_extruder") != 0 || m_config->opt_int("support_material_interface_extruder") != 0)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue