Some compatibility bugs. Slic3r will still fail hard with non-manifold objects

This commit is contained in:
Alessandro Ranellucci 2011-10-11 15:51:08 +02:00
parent bca3abb755
commit f01ddae974
4 changed files with 32 additions and 23 deletions

View file

@ -201,7 +201,7 @@ sub polygon_lines {
sub nearest_point {
my ($point, $points) = @_;
my ($nearest_point, $distance);
my ($nearest_point, $distance) = ();
foreach my $p (@$points) {
my $d = distance_between_points($point, $p);
if (!defined $distance || $d < $distance) {