mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-10 02:37:04 +00:00
Fixed bug in field visibility & made it default to off
This commit is contained in:
@@ -806,7 +806,7 @@ void PrintConfigDef::init_fff_params()
|
|||||||
def->category = L("Speed");
|
def->category = L("Speed");
|
||||||
def->tooltip = L("Enable this option to slow printing down in areas where potential curled perimeters may exist");
|
def->tooltip = L("Enable this option to slow printing down in areas where potential curled perimeters may exist");
|
||||||
def->mode = comAdvanced;
|
def->mode = comAdvanced;
|
||||||
def->set_default_value(new ConfigOptionBool{ true });
|
def->set_default_value(new ConfigOptionBool{ false });
|
||||||
|
|
||||||
def = this->add("overhang_1_4_speed", coFloatOrPercent);
|
def = this->add("overhang_1_4_speed", coFloatOrPercent);
|
||||||
def->label = "(10%, 25%)";
|
def->label = "(10%, 25%)";
|
||||||
|
|||||||
@@ -674,11 +674,11 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
|
|||||||
bool has_overhang_speed = config->opt_bool("enable_overhang_speed");
|
bool has_overhang_speed = config->opt_bool("enable_overhang_speed");
|
||||||
for (auto el :
|
for (auto el :
|
||||||
{"overhang_speed_classic", "overhang_1_4_speed",
|
{"overhang_speed_classic", "overhang_1_4_speed",
|
||||||
"overhang_2_4_speed", "overhang_3_4_speed", "overhang_4_4_speed", "slowdown_for_curled_perimeters"})
|
"overhang_2_4_speed", "overhang_3_4_speed", "overhang_4_4_speed"})
|
||||||
toggle_line(el, has_overhang_speed);
|
toggle_line(el, has_overhang_speed);
|
||||||
|
|
||||||
bool has_overhang_classic = config->opt_bool("overhang_speed_classic");
|
bool has_overhang_speed_classic = config->opt_bool("overhang_speed_classic");
|
||||||
toggle_line("slowdown_for_curled_perimeters",!has_overhang_classic);
|
toggle_line("slowdown_for_curled_perimeters",!has_overhang_speed_classic && has_overhang_speed);
|
||||||
|
|
||||||
toggle_line("flush_into_objects", !is_global_config);
|
toggle_line("flush_into_objects", !is_global_config);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user