@@ -439,7 +439,8 @@ sub options {
439439 adaptive_slicing adaptive_slicing_quality match_horizontal_surfaces
440440 perimeters spiral_vase
441441 top_solid_layers min_shell_thickness min_top_bottom_shell_thickness bottom_solid_layers
442- extra_perimeters avoid_crossing_perimeters thin_walls overhangs
442+ extra_perimeters avoid_crossing_perimeters
443+ thin_walls thin_walls_min_width thin_walls_overlap overhangs
443444 seam_position external_perimeters_first
444445 fill_density fill_pattern top_infill_pattern bottom_infill_pattern fill_gaps
445446 infill_every_layers infill_only_where_needed
@@ -540,7 +541,13 @@ sub build {
540541 my $optgroup = $page -> new_optgroup(' Quality (slower slicing)' );
541542 $optgroup -> append_single_option_line(' extra_perimeters' );
542543 $optgroup -> append_single_option_line(' avoid_crossing_perimeters' );
543- $optgroup -> append_single_option_line(' thin_walls' );
544+ my $line = Slic3r::GUI::OptionsGroup::Line-> new(
545+ label => ' Detect thin walls' ,
546+ );
547+ $line -> append_option($optgroup -> get_option(' thin_walls' ));
548+ $line -> append_option($optgroup -> get_option(' thin_walls_min_width' ));
549+ $line -> append_option($optgroup -> get_option(' thin_walls_overlap' ));
550+ $optgroup -> append_line($line );
544551 $optgroup -> append_single_option_line(' overhangs' );
545552 }
546553 {
@@ -888,8 +895,9 @@ sub _update {
888895 my $have_perimeters = ($config -> perimeters > 0) || ($config -> min_shell_thickness > 0);
889896 if (any { / $opt_key / } qw( all_keys perimeters) ) {
890897 $self -> get_field($_ )-> toggle($have_perimeters )
891- for qw( extra_perimeters thin_walls overhangs seam_position external_perimeters_first
892- external_perimeter_extrusion_width
898+ for qw( extra_perimeters thin_walls thin_walls_min_width thin_walls_overlap
899+ overhangs seam_position
900+ external_perimeters_first external_perimeter_extrusion_width
893901 perimeter_speed small_perimeter_speed external_perimeter_speed) ;
894902 }
895903
@@ -975,6 +983,10 @@ sub _update {
975983 $self -> get_field($_ )-> toggle($have_support_material && $have_support_interface )
976984 for qw( support_material_interface_spacing support_material_interface_extruder
977985 support_material_interface_speed) ;
986+
987+ # thin walls settigns only when thins walls is activated
988+ $self -> get_field($_ )-> toggle($config -> thin_walls)
989+ for qw( thin_walls_min_width thin_walls_overlap) ;
978990
979991 $self -> get_field(' perimeter_extrusion_width' )-> toggle($have_perimeters || $have_skirt || $have_brim );
980992 $self -> get_field(' support_material_extruder' )-> toggle($have_support_material || $have_skirt );
0 commit comments