Browse Source

Minor fix about raft and support after previous commit

Alessandro Ranellucci 11 years ago
parent
commit
6bb425e88d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Slic3r/Print/Object.pm

+ 1 - 1
lib/Slic3r/Print/Object.pm

@@ -65,7 +65,7 @@ sub BUILD {
             print_z => $print_z,
             slice_z => scale $slice_z,
         );
-        if ($id > 0) {
+        if (@{$self->layers} >= 2) {
             $self->layers->[-2]->upper_layer($self->layers->[-1]);
         }
         $id++;