Bugfix: fatal error and warnings removed when cleaning some dirty layers

This commit is contained in:
Alessandro Ranellucci 2012-01-21 18:44:24 +01:00
parent 00c6287488
commit debdd164e2
3 changed files with 3 additions and 2 deletions

View file

@ -166,7 +166,7 @@ sub make_loops {
pop @points;
Slic3r::debugf " Discovered polygon of %d points\n", scalar(@points);
push @polygons, Slic3r::Polygon->new(@points);
$polygons[-1]->cleanup;
pop @polygons if !$polygons[-1]->cleanup;
}
};