Bugfix: downwards interface detection might cause a crash

This commit is contained in:
Alessandro Ranellucci 2014-12-29 14:29:21 +01:00
parent 200130bc10
commit d38503bf44

View file

@ -442,6 +442,7 @@ sub generate_bottom_interface_layers {
my $z = $support_z->[$layer_id];
next unless $z > $top_z;
if ($base->{$layer_id}) {
# get the support material area that should be considered interface
my $interface_area = intersection(
$base->{$layer_id},
@ -459,6 +460,7 @@ sub generate_bottom_interface_layers {
# add new interface area to interface
push @{$interface->{$layer_id}}, @$interface_area;
}
$interface_layers++;
last if $interface_layers == $self->object_config->support_material_interface_layers;