Fixed regression. The repair algorithm was not working after recent changes. Releasing 0.5.5b. #16 #28

This commit is contained in:
Alessandro Ranellucci 2011-12-05 13:01:02 +01:00
parent b8a5d5a208
commit 3d0cde2fce
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ package Slic3r;
use strict; use strict;
use warnings; use warnings;
our $VERSION = "0.5.5a"; our $VERSION = "0.5.5b";
our $debug = 0; our $debug = 0;
sub debugf { sub debugf {

View File

@ -113,13 +113,13 @@ sub new_from_mesh {
my (@upper_surfaces, @lower_surfaces); my (@upper_surfaces, @lower_surfaces);
for (my $j = $i+1; $j <= $#{$print->layers}; $j++) { for (my $j = $i+1; $j <= $#{$print->layers}; $j++) {
if (!$print->layers->[$j]->slicing_errors) { if (!$print->layers->[$j]->slicing_errors) {
@upper_surfaces = @{$print->layers->[$j]->surfaces}; @upper_surfaces = @{$print->layers->[$j]->slices};
last; last;
} }
} }
for (my $j = $i-1; $j >= 0; $j--) { for (my $j = $i-1; $j >= 0; $j--) {
if (!$print->layers->[$j]->slicing_errors) { if (!$print->layers->[$j]->slicing_errors) {
@lower_surfaces = @{$print->layers->[$j]->surfaces}; @lower_surfaces = @{$print->layers->[$j]->slices};
last; last;
} }
} }
@ -132,7 +132,7 @@ sub new_from_mesh {
[ map $_->expolygon->holes, @upper_surfaces, @lower_surfaces, ], [ 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'), ($_, surface_type => 'internal'),
@$diff; @$diff;
} }