mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-11 03:21:57 +08:00
add check button for disabling the support alerts
This commit is contained in:
parent
d0c86403a5
commit
d16f9e0410
@ -444,7 +444,7 @@ static std::vector<std::string> s_Preset_print_options {
|
|||||||
"top_solid_infill_speed", "support_material_speed", "support_material_xy_spacing", "support_material_interface_speed",
|
"top_solid_infill_speed", "support_material_speed", "support_material_xy_spacing", "support_material_interface_speed",
|
||||||
"bridge_speed", "gap_fill_speed", "gap_fill_enabled", "travel_speed", "travel_speed_z", "first_layer_speed", "first_layer_speed_over_raft", "perimeter_acceleration", "infill_acceleration",
|
"bridge_speed", "gap_fill_speed", "gap_fill_enabled", "travel_speed", "travel_speed_z", "first_layer_speed", "first_layer_speed_over_raft", "perimeter_acceleration", "infill_acceleration",
|
||||||
"bridge_acceleration", "first_layer_acceleration", "first_layer_acceleration_over_raft", "default_acceleration", "skirts", "skirt_distance", "skirt_height", "draft_shield",
|
"bridge_acceleration", "first_layer_acceleration", "first_layer_acceleration_over_raft", "default_acceleration", "skirts", "skirt_distance", "skirt_height", "draft_shield",
|
||||||
"min_skirt_length", "brim_width", "brim_separation", "brim_type", "support_material", "support_material_auto", "support_material_threshold", "support_material_enforce_layers",
|
"min_skirt_length", "brim_width", "brim_separation", "brim_type", "check_for_issues_mode", "support_material", "support_material_auto", "support_material_threshold", "support_material_enforce_layers",
|
||||||
"raft_layers", "raft_first_layer_density", "raft_first_layer_expansion", "raft_contact_distance", "raft_expansion",
|
"raft_layers", "raft_first_layer_density", "raft_first_layer_expansion", "raft_contact_distance", "raft_expansion",
|
||||||
"support_material_pattern", "support_material_with_sheath", "support_material_spacing", "support_material_closing_radius", "support_material_style",
|
"support_material_pattern", "support_material_with_sheath", "support_material_spacing", "support_material_closing_radius", "support_material_style",
|
||||||
"support_material_synchronize_layers", "support_material_angle", "support_material_interface_layers", "support_material_bottom_interface_layers",
|
"support_material_synchronize_layers", "support_material_angle", "support_material_interface_layers", "support_material_bottom_interface_layers",
|
||||||
|
@ -2589,6 +2589,14 @@ void PrintConfigDef::init_fff_params()
|
|||||||
def->mode = comAdvanced;
|
def->mode = comAdvanced;
|
||||||
def->set_default_value(new ConfigOptionEnum<SlicingMode>(SlicingMode::Regular));
|
def->set_default_value(new ConfigOptionEnum<SlicingMode>(SlicingMode::Regular));
|
||||||
|
|
||||||
|
def = this->add("check_for_issues_mode", coBool);
|
||||||
|
def->label = L("Check for issues: ");
|
||||||
|
def->category = L("Support material");
|
||||||
|
def->tooltip = L("Check for supportable issues that may appear during printing. "
|
||||||
|
"If enabled, slicer will make alerts when it detects "
|
||||||
|
"issues that may be resolved with supports and/or brim.");
|
||||||
|
def->set_default_value(new ConfigOptionBool(true));
|
||||||
|
|
||||||
def = this->add("support_material", coBool);
|
def = this->add("support_material", coBool);
|
||||||
def->label = L("Generate support material");
|
def->label = L("Generate support material");
|
||||||
def->category = L("Support material");
|
def->category = L("Support material");
|
||||||
|
@ -516,6 +516,7 @@ PRINT_CONFIG_CLASS_DEFINE(
|
|||||||
((ConfigOptionInt, wall_distribution_count))
|
((ConfigOptionInt, wall_distribution_count))
|
||||||
((ConfigOptionFloatOrPercent, min_feature_size))
|
((ConfigOptionFloatOrPercent, min_feature_size))
|
||||||
((ConfigOptionFloatOrPercent, min_bead_width))
|
((ConfigOptionFloatOrPercent, min_bead_width))
|
||||||
|
((ConfigOptionBool, check_for_issues_mode))
|
||||||
((ConfigOptionBool, support_material))
|
((ConfigOptionBool, support_material))
|
||||||
// Automatic supports (generated based fdm support point generator).
|
// Automatic supports (generated based fdm support point generator).
|
||||||
((ConfigOptionBool, support_material_auto))
|
((ConfigOptionBool, support_material_auto))
|
||||||
|
@ -462,7 +462,7 @@ void PrintObject::generate_support_spots()
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!this->has_support()) {
|
if (!this->has_support() && this->config().check_for_issues_mode.getBool()) {
|
||||||
SupportSpotsGenerator::raise_alerts_for_issues(supp_points, partial_objects, alert_fn);
|
SupportSpotsGenerator::raise_alerts_for_issues(supp_points, partial_objects, alert_fn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -619,6 +619,8 @@ bool PrintObject::invalidate_state_by_config_options(
|
|||||||
steps.emplace_back(posSupportSpotsSearch);
|
steps.emplace_back(posSupportSpotsSearch);
|
||||||
// Brim is printed below supports, support invalidates brim and skirt.
|
// Brim is printed below supports, support invalidates brim and skirt.
|
||||||
steps.emplace_back(posSupportMaterial);
|
steps.emplace_back(posSupportMaterial);
|
||||||
|
}else if (opt_key == "check_for_issues_mode") {
|
||||||
|
steps.emplace_back(posSupportSpotsSearch);
|
||||||
} else if (
|
} else if (
|
||||||
opt_key == "perimeters"
|
opt_key == "perimeters"
|
||||||
|| opt_key == "extra_perimeters"
|
|| opt_key == "extra_perimeters"
|
||||||
|
@ -53,7 +53,7 @@ static SettingsFactory::Bundle FREQ_SETTINGS_BUNDLE_FFF =
|
|||||||
{
|
{
|
||||||
{ L("Layers and Perimeters"), { "layer_height" , "perimeters", "top_solid_layers", "bottom_solid_layers" } },
|
{ L("Layers and Perimeters"), { "layer_height" , "perimeters", "top_solid_layers", "bottom_solid_layers" } },
|
||||||
{ L("Infill") , { "fill_density", "fill_pattern" } },
|
{ L("Infill") , { "fill_density", "fill_pattern" } },
|
||||||
{ L("Support material") , { "support_material", "support_material_auto", "support_material_threshold",
|
{ L("Support material") , { "check_for_issues_mode", "support_material", "support_material_auto", "support_material_threshold",
|
||||||
"support_material_pattern", "support_material_interface_pattern", "support_material_buildplate_only",
|
"support_material_pattern", "support_material_interface_pattern", "support_material_buildplate_only",
|
||||||
"support_material_spacing" } },
|
"support_material_spacing" } },
|
||||||
{ L("Wipe options") , { "wipe_into_infill", "wipe_into_objects" } }
|
{ L("Wipe options") , { "wipe_into_infill", "wipe_into_objects" } }
|
||||||
|
@ -1495,6 +1495,7 @@ void TabPrint::build()
|
|||||||
page = add_options_page(L("Support material"), "support");
|
page = add_options_page(L("Support material"), "support");
|
||||||
category_path = "support-material_1698#";
|
category_path = "support-material_1698#";
|
||||||
optgroup = page->new_optgroup(L("Support material"));
|
optgroup = page->new_optgroup(L("Support material"));
|
||||||
|
optgroup->append_single_option_line("check_for_issues_mode", category_path + "check-for-issues-mode");
|
||||||
optgroup->append_single_option_line("support_material", category_path + "generate-support-material");
|
optgroup->append_single_option_line("support_material", category_path + "generate-support-material");
|
||||||
optgroup->append_single_option_line("support_material_auto", category_path + "auto-generated-supports");
|
optgroup->append_single_option_line("support_material_auto", category_path + "auto-generated-supports");
|
||||||
optgroup->append_single_option_line("support_material_threshold", category_path + "overhang-threshold");
|
optgroup->append_single_option_line("support_material_threshold", category_path + "overhang-threshold");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user