Don't disable solid infill pattern option unless no infill & top/bottom surfaces (#8375)
Fix #8370
This commit is contained in:
commit
5e541f84e4
1 changed files with 11 additions and 10 deletions
|
@ -529,19 +529,20 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
|
||||||
toggle_line("spiral_mode_max_xy_smoothing", has_spiral_vase && config->opt_bool("spiral_mode_smooth"));
|
toggle_line("spiral_mode_max_xy_smoothing", has_spiral_vase && config->opt_bool("spiral_mode_smooth"));
|
||||||
toggle_line("spiral_starting_flow_ratio", has_spiral_vase);
|
toggle_line("spiral_starting_flow_ratio", has_spiral_vase);
|
||||||
toggle_line("spiral_finishing_flow_ratio", has_spiral_vase);
|
toggle_line("spiral_finishing_flow_ratio", has_spiral_vase);
|
||||||
bool has_top_solid_infill = config->opt_int("top_shell_layers") > 0;
|
bool has_top_shell = config->opt_int("top_shell_layers") > 0;
|
||||||
bool has_bottom_solid_infill = config->opt_int("bottom_shell_layers") > 0;
|
bool has_bottom_shell = config->opt_int("bottom_shell_layers") > 0;
|
||||||
bool has_solid_infill = has_top_solid_infill || has_bottom_solid_infill;
|
bool has_solid_infill = has_top_shell || has_bottom_shell;
|
||||||
// solid_infill_filament uses the same logic as in Print::extruders()
|
toggle_field("top_surface_pattern", has_top_shell);
|
||||||
for (auto el : { "top_surface_pattern", "bottom_surface_pattern", "internal_solid_infill_pattern", "solid_infill_filament"})
|
toggle_field("bottom_surface_pattern", has_bottom_shell);
|
||||||
toggle_field(el, has_solid_infill);
|
|
||||||
|
|
||||||
for (auto el : { "infill_direction", "sparse_infill_line_width",
|
for (auto el : { "infill_direction", "sparse_infill_line_width",
|
||||||
"sparse_infill_speed", "bridge_speed", "internal_bridge_speed", "bridge_angle","internal_bridge_angle","solid_infill_direction", "rotate_solid_infill_direction" })
|
"sparse_infill_speed", "bridge_speed", "internal_bridge_speed", "bridge_angle","internal_bridge_angle",
|
||||||
|
"solid_infill_direction", "rotate_solid_infill_direction", "internal_solid_infill_pattern", "solid_infill_filament",
|
||||||
|
})
|
||||||
toggle_field(el, have_infill || has_solid_infill);
|
toggle_field(el, have_infill || has_solid_infill);
|
||||||
|
|
||||||
toggle_field("top_shell_thickness", ! has_spiral_vase && has_top_solid_infill);
|
toggle_field("top_shell_thickness", ! has_spiral_vase && has_top_shell);
|
||||||
toggle_field("bottom_shell_thickness", ! has_spiral_vase && has_bottom_solid_infill);
|
toggle_field("bottom_shell_thickness", ! has_spiral_vase && has_bottom_shell);
|
||||||
|
|
||||||
toggle_field("wall_direction", !has_spiral_vase);
|
toggle_field("wall_direction", !has_spiral_vase);
|
||||||
|
|
||||||
|
@ -549,7 +550,7 @@ void ConfigManipulation::toggle_print_fff_options(DynamicPrintConfig *config, co
|
||||||
toggle_field("gap_infill_speed", have_perimeters);
|
toggle_field("gap_infill_speed", have_perimeters);
|
||||||
|
|
||||||
for (auto el : { "top_surface_line_width", "top_surface_speed" })
|
for (auto el : { "top_surface_line_width", "top_surface_speed" })
|
||||||
toggle_field(el, has_top_solid_infill || (has_spiral_vase && has_bottom_solid_infill));
|
toggle_field(el, has_top_shell || (has_spiral_vase && has_bottom_shell));
|
||||||
|
|
||||||
bool have_default_acceleration = config->opt_float("default_acceleration") > 0;
|
bool have_default_acceleration = config->opt_float("default_acceleration") > 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue