diff options
-rw-r--r-- | src/BulletSoftBody/btSoftBody.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BulletSoftBody/btSoftBody.cpp b/src/BulletSoftBody/btSoftBody.cpp index 64005cc2c..c873099b4 100644 --- a/src/BulletSoftBody/btSoftBody.cpp +++ b/src/BulletSoftBody/btSoftBody.cpp @@ -2817,7 +2817,7 @@ static void getBarycentric(const btVector3& p, const btVector3& a, const btVecto btScalar d21 = v2.dot(v1); btScalar denom = d00 * d11 - d01 * d01; // In the case of a degenerate triangle, pick a vertex. - if (denom == btScalar(0.0)) + if (btFabs(denom) < SIMD_EPSILON) { bary.setY(btScalar(0.0)); bary.setZ(btScalar(0.0)); |