From f590bbb430ac277e6c9df6d1b30177d6339b44f3 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 12 Jul 2014 10:38:19 +0200 Subject: [PATCH] Fix crash with modifier meshes not spanning the entire height of solid meshes --- lib/Slic3r/Print/Object.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Slic3r/Print/Object.pm b/lib/Slic3r/Print/Object.pm index 9f6bb2b0d..ace1d7afb 100644 --- a/lib/Slic3r/Print/Object.pm +++ b/lib/Slic3r/Print/Object.pm @@ -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(