mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-27 12:01:54 -06:00
Draft shield option is now an enum (Disabled/Limited/Enabled)
This commit is contained in:
parent
6eeedf2bc6
commit
b466f18326
5 changed files with 34 additions and 15 deletions
|
@ -276,7 +276,7 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig* config)
|
|||
toggle_field(el, have_default_acceleration);
|
||||
|
||||
bool have_skirt = config->opt_int("skirts") > 0;
|
||||
toggle_field("skirt_height", have_skirt && !config->opt_bool("draft_shield"));
|
||||
toggle_field("skirt_height", have_skirt && config->opt_enum<DraftShield>("draft_shield") != dsEnabled);
|
||||
for (auto el : { "skirt_distance", "draft_shield", "min_skirt_length" })
|
||||
toggle_field(el, have_skirt);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue