mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-09 07:56:24 -06:00
Remove draft shield limited option
This commit is contained in:
parent
302e5b1220
commit
748ae2e7a6
2 changed files with 6 additions and 8 deletions
|
@ -319,7 +319,6 @@ CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(TimelapseType)
|
||||||
|
|
||||||
static const t_config_enum_values s_keys_map_DraftShield = {
|
static const t_config_enum_values s_keys_map_DraftShield = {
|
||||||
{ "disabled", dsDisabled },
|
{ "disabled", dsDisabled },
|
||||||
{ "limited", dsLimited },
|
|
||||||
{ "enabled", dsEnabled }
|
{ "enabled", dsEnabled }
|
||||||
};
|
};
|
||||||
CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(DraftShield)
|
CONFIG_OPTION_ENUM_DEFINE_STATIC_MAPS(DraftShield)
|
||||||
|
@ -4006,17 +4005,13 @@ void PrintConfigDef::init_fff_params()
|
||||||
def->label = L("Draft shield");
|
def->label = L("Draft shield");
|
||||||
def->tooltip = L("A draft shield is useful to protect an ABS or ASA print from warping and detaching from print bed due to wind draft. "
|
def->tooltip = L("A draft shield is useful to protect an ABS or ASA print from warping and detaching from print bed due to wind draft. "
|
||||||
"It is usually needed only with open frame printers, i.e. without an enclosure. \n\n"
|
"It is usually needed only with open frame printers, i.e. without an enclosure. \n\n"
|
||||||
"Options:\n"
|
"Enabled = skirt is as tall as the highest printed object. Otherwise 'Skirt height' is used.\n"
|
||||||
"Enabled = skirt is as tall as the highest printed object.\n"
|
|
||||||
"Limited = skirt is as tall as specified by skirt height.\n\n"
|
|
||||||
"Note: With the draft shield active, the skirt will be printed at skirt distance from the object. Therefore, if brims "
|
"Note: With the draft shield active, the skirt will be printed at skirt distance from the object. Therefore, if brims "
|
||||||
"are active it may intersect with them. To avoid this, increase the skirt distance value.\n");
|
"are active it may intersect with them. To avoid this, increase the skirt distance value.\n");
|
||||||
def->enum_keys_map = &ConfigOptionEnum<DraftShield>::get_enum_values();
|
def->enum_keys_map = &ConfigOptionEnum<DraftShield>::get_enum_values();
|
||||||
def->enum_values.push_back("disabled");
|
def->enum_values.push_back("disabled");
|
||||||
def->enum_values.push_back("limited");
|
|
||||||
def->enum_values.push_back("enabled");
|
def->enum_values.push_back("enabled");
|
||||||
def->enum_labels.push_back(L("Disabled"));
|
def->enum_labels.push_back(L("Disabled"));
|
||||||
def->enum_labels.push_back(L("Limited"));
|
|
||||||
def->enum_labels.push_back(L("Enabled"));
|
def->enum_labels.push_back(L("Enabled"));
|
||||||
def->mode = comAdvanced;
|
def->mode = comAdvanced;
|
||||||
def->set_default_value(new ConfigOptionEnum<DraftShield>(dsDisabled));
|
def->set_default_value(new ConfigOptionEnum<DraftShield>(dsDisabled));
|
||||||
|
@ -6147,6 +6142,9 @@ void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &va
|
||||||
else if(opt_key == "counterbole_hole_bridging") {
|
else if(opt_key == "counterbole_hole_bridging") {
|
||||||
opt_key = "counterbore_hole_bridging";
|
opt_key = "counterbore_hole_bridging";
|
||||||
}
|
}
|
||||||
|
else if (opt_key == "draft_shield" && value == "limited") {
|
||||||
|
value = "disabled";
|
||||||
|
}
|
||||||
|
|
||||||
// Ignore the following obsolete configuration keys:
|
// Ignore the following obsolete configuration keys:
|
||||||
static std::set<std::string> ignore = {
|
static std::set<std::string> ignore = {
|
||||||
|
|
|
@ -225,7 +225,7 @@ enum TimelapseType : int {
|
||||||
};
|
};
|
||||||
|
|
||||||
enum DraftShield {
|
enum DraftShield {
|
||||||
dsDisabled, dsLimited, dsEnabled
|
dsDisabled, dsEnabled
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class PerimeterGeneratorType
|
enum class PerimeterGeneratorType
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue