diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2011-12-05 16:01:02 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2011-12-05 16:01:02 +0400 |
commit | 3d0cde2fcec24cbe1e8bf3adfec342e90dd06c3b (patch) | |
tree | a4b1eaf7568e3df905deb865f59d1332e7588312 | |
parent | b8a5d5a208ca2df70789a4da11db7e7d44408c1b (diff) |
Fixed regression. The repair algorithm was not working after recent changes. Releasing 0.5.5b. #16 #280.5.5b
-rw-r--r-- | lib/Slic3r.pm | 2 | ||||
-rw-r--r-- | 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; } |