Bugfix: a lot of extra support material was generated when using both raft layers and support material. #2030

This commit is contained in:
Alessandro Ranellucci 2014-05-26 14:09:42 +02:00
parent e62672f787
commit 8290a006ed

View File

@ -132,7 +132,7 @@ sub contact_area {
# If a threshold angle was specified, use a different logic for detecting overhangs. # If a threshold angle was specified, use a different logic for detecting overhangs.
if (defined $threshold_rad if (defined $threshold_rad
|| $layer_id < $self->object_config->support_material_enforce_layers || $layer_id < $self->object_config->support_material_enforce_layers
|| $self->object_config->raft_layers > 0) { || ($self->object_config->raft_layers > 0 && $layer_id == 0)) {
my $d = defined $threshold_rad my $d = defined $threshold_rad
? scale $lower_layer->height * ((cos $threshold_rad) / (sin $threshold_rad)) ? scale $lower_layer->height * ((cos $threshold_rad) / (sin $threshold_rad))
: 0; : 0;