FIX: hide wrapping detect for unsupported printers

jira: STUDIO-13884
Change-Id: I215011f419ff194f6b8e4c7ed884cba194c87d19
(cherry picked from commit fd63b1f59d88fb8e07b8ca71dfa5c01cfa54def5)
This commit is contained in:
zhimin.zeng 2025-08-07 15:24:49 +08:00 committed by Noisyfox
parent 120c9b41e2
commit 390bc3fb27

View file

@ -897,6 +897,10 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
toggle_line("infill_overhang_angle", config->opt_enum<InfillPattern>("sparse_infill_pattern") == InfillPattern::ipLateralHoneycomb);
ConfigOptionPoints *wrapping_exclude_area_opt = wxGetApp().preset_bundle->printers.get_edited_preset().config.option<ConfigOptionPoints>("wrapping_exclude_area");
bool support_wrapping_detect = wrapping_exclude_area_opt &&wrapping_exclude_area_opt->values.size() > 3;
toggle_line("enable_wrapping_detection", support_wrapping_detect);
}
void ConfigManipulation::update_print_sla_config(DynamicPrintConfig* config, const bool is_global_config/* = false*/)