FIX: show sysmetric option for cross zag

Jira: none

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: Ic7c1a3ebb2692f0a37c47becfd545a0273fbeab8
This commit is contained in:
qing.zhang 2025-03-17 17:50:45 +08:00 committed by lane.wei
parent e28346c035
commit 3c85b71fcd
2 changed files with 6 additions and 6 deletions

View File

@ -565,12 +565,11 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, in
//cross zag //cross zag
bool is_cross_zag = config->option<ConfigOptionEnum<InfillPattern>>("sparse_infill_pattern")->value == InfillPattern::ipCrossZag; bool is_cross_zag = config->option<ConfigOptionEnum<InfillPattern>>("sparse_infill_pattern")->value == InfillPattern::ipCrossZag;
for (auto el : {"infill_shift_step", "symmetric_infill_y_axis"}) toggle_line("infill_shift_step", is_cross_zag);
toggle_line(el, is_cross_zag);
bool is_zig_zag = config->option<ConfigOptionEnum<InfillPattern>>("sparse_infill_pattern")->value == InfillPattern::ipZigZag; bool is_zig_zag = config->option<ConfigOptionEnum<InfillPattern>>("sparse_infill_pattern")->value == InfillPattern::ipZigZag;
for (auto el : {"infill_rotate_step", "symmetric_infill_y_axis"})
toggle_line(el, is_zig_zag); toggle_line("infill_rotate_step", is_zig_zag);
toggle_line("symmetric_infill_y_axis", is_zig_zag || is_cross_zag);
bool has_spiral_vase = config->opt_bool("spiral_mode"); bool has_spiral_vase = config->opt_bool("spiral_mode");
toggle_line("spiral_mode_smooth", has_spiral_vase); toggle_line("spiral_mode_smooth", has_spiral_vase);

View File

@ -2123,8 +2123,9 @@ void TabPrint::build()
optgroup = page->new_optgroup(L("Sparse infill"), L"param_infill"); optgroup = page->new_optgroup(L("Sparse infill"), L"param_infill");
optgroup->append_single_option_line("sparse_infill_density"); optgroup->append_single_option_line("sparse_infill_density");
optgroup->append_single_option_line("sparse_infill_pattern", "fill-patterns#infill types and their properties of sparse"); optgroup->append_single_option_line("sparse_infill_pattern", "fill-patterns#infill types and their properties of sparse");
optgroup->append_single_option_line("infill_shift_step");
optgroup->append_single_option_line("symmetric_infill_y_axis"); optgroup->append_single_option_line("symmetric_infill_y_axis");
optgroup->append_single_option_line("infill_shift_step");
optgroup->append_single_option_line("infill_rotate_step"); optgroup->append_single_option_line("infill_rotate_step");
optgroup->append_single_option_line("sparse_infill_anchor"); optgroup->append_single_option_line("sparse_infill_anchor");