From 0040b7094aab40cd17faf4f5c3a7ed81a1d2fde2 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 13 Oct 2009 23:03:50 +0000 Subject: [PATCH] take out troublesome asserts for now --- panda/src/mathutil/boundingHexahedron.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/mathutil/boundingHexahedron.cxx b/panda/src/mathutil/boundingHexahedron.cxx index 82e929656d..a8d140a1cf 100644 --- a/panda/src/mathutil/boundingHexahedron.cxx +++ b/panda/src/mathutil/boundingHexahedron.cxx @@ -476,12 +476,16 @@ set_planes() { _planes[5] = Planef(_points[4], _points[6], _points[7]); } + // Still not entirely sure why some code keeps triggering these, but + // I'm taking them out of the normal build for now. +#ifdef _DEBUG nassertv(_planes[0].dist_to_plane(_centroid) <= 0.001); nassertv(_planes[1].dist_to_plane(_centroid) <= 0.001); nassertv(_planes[2].dist_to_plane(_centroid) <= 0.001); nassertv(_planes[3].dist_to_plane(_centroid) <= 0.001); nassertv(_planes[4].dist_to_plane(_centroid) <= 0.001); nassertv(_planes[5].dist_to_plane(_centroid) <= 0.001); +#endif } ////////////////////////////////////////////////////////////////////