ENH: add some missing change for params
1. Add more change for ensure vertical shell thickness jira:none Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: I0bd575ab3cb314c0276faf9a91da1c7744e66da6
This commit is contained in:
parent
3133b2a52f
commit
c7f80cb611
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Anker",
|
||||
"version": "01.10.00.01",
|
||||
"version": "02.00.00.01",
|
||||
"force_update": "0",
|
||||
"description": "Anker configurations",
|
||||
"machine_model_list": [
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
"travel_speed": "300",
|
||||
"travel_speed_z": "0",
|
||||
"enable_arc_fitting": "0",
|
||||
"ensure_vertical_shell_thickness": "1",
|
||||
"ensure_vertical_shell_thickness": "enabled",
|
||||
"precise_outer_wall": "1",
|
||||
"independent_support_layer_height": "1",
|
||||
"default_jerk": "15",
|
||||
|
|
|
@ -1329,14 +1329,6 @@ void PrintConfigDef::init_fff_params()
|
|||
def->mode = comAdvanced;
|
||||
def->set_default_value(new ConfigOptionStrings { " " });
|
||||
|
||||
def = this->add("ensure_vertical_shell_thickness", coBool);
|
||||
def->label = L("Ensure vertical shell thickness");
|
||||
def->category = L("Strength");
|
||||
def->tooltip = L("Add solid infill near sloping surfaces to guarantee the vertical shell thickness "
|
||||
"(top+bottom solid layers)");
|
||||
def->mode = comAdvanced;
|
||||
def->set_default_value(new ConfigOptionBool(true));
|
||||
|
||||
def = this->add("ensure_vertical_shell_thickness", coEnum);
|
||||
def->label = L("Ensure vertical shell thickness");
|
||||
def->category = L("Strength");
|
||||
|
|
|
@ -301,7 +301,7 @@ void ConfigManipulation::update_print_fff_config(DynamicPrintConfig* config, con
|
|||
sparse_infill_density == 0 &&
|
||||
!config->opt_bool("enable_support") &&
|
||||
config->opt_int("enforce_support_layers") == 0 &&
|
||||
config->opt_bool("ensure_vertical_shell_thickness") &&
|
||||
config->opt_enum<EnsureVerticalThicknessLevel>("ensure_vertical_shell_thickness") == EnsureVerticalThicknessLevel::evtEnabled &&
|
||||
!config->opt_bool("detect_thin_wall") &&
|
||||
config->opt_enum<TimelapseType>("timelapse_type") == TimelapseType::tlTraditional &&
|
||||
!config->opt_bool("z_direction_outwall_speed_continuous")))
|
||||
|
@ -315,7 +315,7 @@ void ConfigManipulation::update_print_fff_config(DynamicPrintConfig* config, con
|
|||
new_conf.set_key_value("sparse_infill_density", new ConfigOptionPercent(0));
|
||||
new_conf.set_key_value("enable_support", new ConfigOptionBool(false));
|
||||
new_conf.set_key_value("enforce_support_layers", new ConfigOptionInt(0));
|
||||
new_conf.set_key_value("ensure_vertical_shell_thickness", new ConfigOptionBool(true));
|
||||
new_conf.set_key_value("ensure_vertical_shell_thickness", new ConfigOptionEnum<EnsureVerticalThicknessLevel>(EnsureVerticalThicknessLevel::evtEnabled));
|
||||
new_conf.set_key_value("detect_thin_wall", new ConfigOptionBool(false));
|
||||
new_conf.set_key_value("timelapse_type", new ConfigOptionEnum<TimelapseType>(tlTraditional));
|
||||
new_conf.set_key_value("z_direction_outwall_speed_continuous", new ConfigOptionBool(false));
|
||||
|
|
|
@ -2150,7 +2150,7 @@ void PartPlate::set_vase_mode_related_object_config(int obj_id) {
|
|||
new_conf.set_key_value("sparse_infill_density", new ConfigOptionPercent(0));
|
||||
new_conf.set_key_value("enable_support", new ConfigOptionBool(false));
|
||||
new_conf.set_key_value("enforce_support_layers", new ConfigOptionInt(0));
|
||||
new_conf.set_key_value("ensure_vertical_shell_thickness", new ConfigOptionBool(true));
|
||||
new_conf.set_key_value("ensure_vertical_shell_thickness", new ConfigOptionEnum<EnsureVerticalThicknessLevel>(EnsureVerticalThicknessLevel::evtEnabled));
|
||||
new_conf.set_key_value("detect_thin_wall", new ConfigOptionBool(false));
|
||||
new_conf.set_key_value("timelapse_type", new ConfigOptionEnum<TimelapseType>(tlTraditional));
|
||||
auto applying_keys = global_config->diff(new_conf);
|
||||
|
@ -4526,7 +4526,7 @@ int PartPlateList::notify_instance_update(int obj_id, int instance_id, bool is_n
|
|||
config.has("sparse_infill_density") && config.option<ConfigOptionPercent>("sparse_infill_density")->value == 0 &&
|
||||
config.has("enable_support") && !config.opt_bool("enable_support") &&
|
||||
config.has("enforce_support_layers") && config.opt_int("enforce_support_layers") == 0 &&
|
||||
config.has("ensure_vertical_shell_thickness") && config.opt_bool("ensure_vertical_shell_thickness") &&
|
||||
config.has("ensure_vertical_shell_thickness") && config.opt_enum<EnsureVerticalThicknessLevel>("ensure_vertical_shell_thickness") == EnsureVerticalThicknessLevel::evtEnabled &&
|
||||
config.has("detect_thin_wall") && !config.opt_bool("detect_thin_wall") &&
|
||||
config.has("timelapse_type") && config.opt_enum<TimelapseType>("timelapse_type") == TimelapseType::tlTraditional)
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue