Finalized the experimental "synchronize support layers with object layers"

feature (the support_material_synchronize_layers settings).
The feature is now enabled for the soluble supports only
(with support_material_contact_distance > 0).

Fixes https://github.com/prusa3d/Slic3r/issues/197
This commit is contained in:
bubnikv 2017-04-10 12:00:07 +02:00
parent 688fe3e2b2
commit 23be6233c8
3 changed files with 68 additions and 71 deletions

View file

@ -646,6 +646,7 @@ sub build {
{
my $optgroup = $page->new_optgroup('Raft');
$optgroup->append_single_option_line('raft_layers');
# $optgroup->append_single_option_line('raft_contact_distance');
}
{
my $optgroup = $page->new_optgroup('Options for support material and raft');
@ -929,17 +930,20 @@ sub _update {
# perimeter_extruder uses the same logic as in Print::extruders()
$self->get_field('perimeter_extruder')->toggle($have_perimeters || $have_brim);
my $have_support_material = $config->support_material || $config->raft_layers > 0;
my $have_raft = $config->raft_layers > 0;
my $have_support_material = $config->support_material || $have_raft;
my $have_support_interface = $config->support_material_interface_layers > 0;
my $have_support_soluble = $have_support_material && $config->support_material_contact_distance == 0;
$self->get_field($_)->toggle($have_support_material)
for qw(support_material_threshold support_material_pattern support_material_with_sheath
support_material_spacing support_material_synchronize_layers support_material_angle
support_material_spacing support_material_angle
support_material_interface_layers dont_support_bridges
support_material_extrusion_width support_material_contact_distance support_material_xy_spacing);
$self->get_field($_)->toggle($have_support_material && $have_support_interface)
for qw(support_material_interface_spacing support_material_interface_extruder
support_material_interface_speed support_material_interface_contact_loops);
$self->get_field('support_material_synchronize_layers')->toggle($have_support_soluble);
$self->get_field('perimeter_extrusion_width')->toggle($have_perimeters || $have_skirt || $have_brim);
$self->get_field('support_material_extruder')->toggle($have_support_material || $have_skirt);
$self->get_field('support_material_speed')->toggle($have_support_material || $have_brim || $have_skirt);