Merge pull request #3209 from hyperair/fix-3046

Don't toggle support_material_enforce_layers field
This commit is contained in:
Alessandro Ranellucci 2016-03-13 18:30:22 +01:00
commit 0964700e6d

View File

@ -818,8 +818,8 @@ sub _update {
my $have_support_material = $config->support_material || $config->raft_layers > 0; my $have_support_material = $config->support_material || $config->raft_layers > 0;
my $have_support_interface = $config->support_material_interface_layers > 0; my $have_support_interface = $config->support_material_interface_layers > 0;
$self->get_field($_)->toggle($have_support_material) $self->get_field($_)->toggle($have_support_material)
for qw(support_material_threshold support_material_enforce_layers for qw(support_material_threshold support_material_pattern
support_material_pattern support_material_spacing support_material_angle support_material_spacing support_material_angle
support_material_interface_layers dont_support_bridges support_material_interface_layers dont_support_bridges
support_material_extrusion_width support_material_contact_distance); support_material_extrusion_width support_material_contact_distance);
$self->get_field($_)->toggle($have_support_material && $have_support_interface) $self->get_field($_)->toggle($have_support_material && $have_support_interface)