From 167b8825f7e3d293300bc01d19f951948c901b07 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Tue, 21 Apr 2015 01:33:25 -0400 Subject: [PATCH] Fixed bug reversing result of is_nan(), causing normals vectors to sometime be exported as 0 0 0. Fixes #1317 --- src/linalg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linalg.h b/src/linalg.h index 40601ec1..6e65c1be 100644 --- a/src/linalg.h +++ b/src/linalg.h @@ -29,7 +29,7 @@ template bool is_finite(const Eigen::MatrixBase& x) { } template bool is_nan(const Eigen::MatrixBase& x) { - return ((x.array() == x.array())).all(); + return !((x.array() == x.array())).all(); } BoundingBox operator*(const Transform3d &m, const BoundingBox &box);