Fixed regression. The repair algorithm was not working after recent changes. Releasing 0.5.5b. #16 #28
This commit is contained in:
parent
b8a5d5a208
commit
3d0cde2fce
@ -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 {
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user