From f491b7ba71a024dc132513e8bf41e47b79ed97c3 Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Sat, 2 Nov 2013 11:32:23 +0100 Subject: [PATCH] Fix t/support.t --- lib/Slic3r/Print/SupportMaterial.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Slic3r/Print/SupportMaterial.pm b/lib/Slic3r/Print/SupportMaterial.pm index 4765dee8b..c2588bddc 100644 --- a/lib/Slic3r/Print/SupportMaterial.pm +++ b/lib/Slic3r/Print/SupportMaterial.pm @@ -242,7 +242,7 @@ sub support_layers_z { # add raft layers by dividing the space between first layer and # first contact layer evenly - if ($self->config->raft_layers > 1) { + if ($self->config->raft_layers > 1 && @z >= 2) { # $z[1] is last raft layer (contact layer for the first layer object) my $height = ($z[1] - $z[0]) / ($self->config->raft_layers - 1); splice @z, 1, 0,