Fix crash with modifier meshes not spanning the entire height of solid meshes

This commit is contained in:
Alessandro Ranellucci 2014-07-12 10:38:19 +02:00
parent f82a8475a1
commit f590bbb430

View file

@ -208,6 +208,7 @@ sub slice {
for my $layer_id (0..$#$expolygons_by_layer) {
my $layerm = $self->get_layer($layer_id)->regions->[$region_id];
my $other_layerm = $self->get_layer($layer_id)->regions->[$other_region_id];
next if !defined $other_layerm;
my $other_slices = [ map $_->p, @{$other_layerm->slices} ]; # Polygons
my $my_parts = intersection_ex(