fix max_bridge_length with support_material_style

This commit is contained in:
Wang YB
2024-04-25 10:33:58 +08:00
parent b9452a91a2
commit 128a023c41
3 changed files with 4 additions and 4 deletions

View File

@@ -1145,7 +1145,7 @@ static inline std::tuple<Polygons, Polygons, Polygons, float> detect_overhangs(
float no_interface_offset = 0.f;
//w28
double max_bridge_length = scale_(object_config.max_bridge_length.value);
bool bridge_break = object_config.max_bridge_length.value > 0;
bool bridge_break = (object_config.max_bridge_length.value > 0) && (object_config.support_material_style == smsOrganic);
if (layer_id == 0)
{

View File

@@ -205,7 +205,7 @@ static std::vector<std::pair<TreeSupportSettings, std::vector<size_t>>> group_me
auto enforcer_overhang_offset = scaled<double>(config.support_tree_tip_diameter.value);
//w28
double max_bridge_length = scale_(config.max_bridge_length.value);
bool bridge_break = config.max_bridge_length.value > 0;
bool bridge_break = (config.max_bridge_length.value > 0) && (config.support_material_style == smsOrganic);
//w28
size_t num_overhang_layers = support_auto ? num_object_layers : std::min(num_object_layers, std::max(size_t(support_enforce_layers), enforcers_layers.size()));

View File

@@ -318,7 +318,7 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig* config)
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);
toggle_field("max_bridge_length", can_remove_bridge && support_material_style == smsOrganic);
const bool has_organic_supports = support_material_style == smsOrganic &&
(config->opt_bool("support_material") ||