From 3d0cde2fcec24cbe1e8bf3adfec342e90dd06c3b Mon Sep 17 00:00:00 2001 From: Alessandro Ranellucci Date: Mon, 5 Dec 2011 13:01:02 +0100 Subject: [PATCH] Fixed regression. The repair algorithm was not working after recent changes. Releasing 0.5.5b. #16 #28 --- lib/Slic3r.pm | 2 +- lib/Slic3r/Print.pm | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Slic3r.pm b/lib/Slic3r.pm index d078e1696..4e6d8fd48 100644 --- a/lib/Slic3r.pm +++ b/lib/Slic3r.pm @@ -3,7 +3,7 @@ package Slic3r; use strict; use warnings; -our $VERSION = "0.5.5a"; +our $VERSION = "0.5.5b"; our $debug = 0; sub debugf { diff --git a/lib/Slic3r/Print.pm b/lib/Slic3r/Print.pm index 1b72b6302..916a99ea9 100644 --- a/lib/Slic3r/Print.pm +++ b/lib/Slic3r/Print.pm @@ -113,13 +113,13 @@ sub new_from_mesh { my (@upper_surfaces, @lower_surfaces); for (my $j = $i+1; $j <= $#{$print->layers}; $j++) { if (!$print->layers->[$j]->slicing_errors) { - @upper_surfaces = @{$print->layers->[$j]->surfaces}; + @upper_surfaces = @{$print->layers->[$j]->slices}; last; } } for (my $j = $i-1; $j >= 0; $j--) { if (!$print->layers->[$j]->slicing_errors) { - @lower_surfaces = @{$print->layers->[$j]->surfaces}; + @lower_surfaces = @{$print->layers->[$j]->slices}; last; } } @@ -132,7 +132,7 @@ sub new_from_mesh { [ map $_->expolygon->holes, @upper_surfaces, @lower_surfaces, ], ); - @{$layer->surfaces} = map Slic3r::Surface->cast_from_expolygon + @{$layer->slices} = map Slic3r::Surface->cast_from_expolygon ($_, surface_type => 'internal'), @$diff; }