mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
hide Reverse threshold when not editable (#10161)
* make **`Reverse threshold`** inactive when **`Reverse only internal perimeters`** is activated * Update ConfigManipulation.cpp * 100%% => 100% Also fixed a typo along the way.
This commit is contained in:
@@ -11727,7 +11727,7 @@ msgstr ""
|
|||||||
#, possible-c-format, possible-boost-format
|
#, possible-c-format, possible-boost-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Detect the overhang percentage relative to line width and use different "
|
"Detect the overhang percentage relative to line width and use different "
|
||||||
"speed to print. For 100%% overhang, bridge speed is used."
|
"speed to print. For 100% overhang, bridge speed is used."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Filament to print walls"
|
msgid "Filament to print walls"
|
||||||
|
|||||||
@@ -824,9 +824,7 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
|
|||||||
bool has_overhang_reverse = config->opt_bool("overhang_reverse");
|
bool has_overhang_reverse = config->opt_bool("overhang_reverse");
|
||||||
bool force_wall_direction = config->opt_enum<WallDirection>("wall_direction") != WallDirection::Auto;
|
bool force_wall_direction = config->opt_enum<WallDirection>("wall_direction") != WallDirection::Auto;
|
||||||
bool allow_overhang_reverse = !has_spiral_vase && !force_wall_direction;
|
bool allow_overhang_reverse = !has_spiral_vase && !force_wall_direction;
|
||||||
toggle_field("overhang_reverse", allow_overhang_reverse);
|
toggle_line("overhang_reverse", allow_overhang_reverse);
|
||||||
toggle_field("overhang_reverse_threshold", has_detect_overhang_wall);
|
|
||||||
toggle_line("overhang_reverse_threshold", allow_overhang_reverse && has_overhang_reverse);
|
|
||||||
toggle_line("overhang_reverse_internal_only", allow_overhang_reverse && has_overhang_reverse);
|
toggle_line("overhang_reverse_internal_only", allow_overhang_reverse && has_overhang_reverse);
|
||||||
bool has_overhang_reverse_internal_only = config->opt_bool("overhang_reverse_internal_only");
|
bool has_overhang_reverse_internal_only = config->opt_bool("overhang_reverse_internal_only");
|
||||||
if (has_overhang_reverse_internal_only){
|
if (has_overhang_reverse_internal_only){
|
||||||
@@ -834,6 +832,7 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
|
|||||||
new_conf.set_key_value("overhang_reverse_threshold", new ConfigOptionFloatOrPercent(0,true));
|
new_conf.set_key_value("overhang_reverse_threshold", new ConfigOptionFloatOrPercent(0,true));
|
||||||
apply(config, &new_conf);
|
apply(config, &new_conf);
|
||||||
}
|
}
|
||||||
|
toggle_line("overhang_reverse_threshold", has_detect_overhang_wall && allow_overhang_reverse && has_overhang_reverse && !has_overhang_reverse_internal_only);
|
||||||
toggle_line("timelapse_type", is_BBL_Printer);
|
toggle_line("timelapse_type", is_BBL_Printer);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user