add max_bridge_length

This commit is contained in:
Wang YB
2024-04-25 09:57:55 +08:00
parent cc68470ac8
commit b9452a91a2
12 changed files with 189 additions and 3 deletions

View File

@@ -316,6 +316,9 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig* config)
toggle_field("support_material_threshold", have_support_material_auto);
toggle_field("support_material_bottom_contact_distance", have_support_material && ! have_support_soluble);
toggle_field("support_material_closing_radius", have_support_material && support_material_style == smsSnug);
//w28
bool can_remove_bridge = have_support_material && !config->opt_bool("dont_support_bridges");
toggle_field("max_bridge_length", can_remove_bridge);
const bool has_organic_supports = support_material_style == smsOrganic &&
(config->opt_bool("support_material") ||

View File

@@ -1562,6 +1562,8 @@ void TabPrint::build()
optgroup->append_single_option_line("support_material_xy_spacing", category_path + "xy-separation-between-an-object-and-its-support");
optgroup->append_single_option_line("dont_support_bridges", category_path + "dont-support-bridges");
optgroup->append_single_option_line("support_material_synchronize_layers", category_path + "synchronize-with-object-layers");
//w28
optgroup->append_single_option_line("max_bridge_length", category_path + "max_bridge_length");
optgroup = page->new_optgroup(L("Organic supports"));
const std::string path = "organic-supports_480131#organic-supports-settings";