From 441c7291698aa7741228a94b6a6f6add09ff3c1c Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Sun, 22 Jun 2008 03:15:31 +0000 Subject: [PATCH] Clear the user cache, when re-using an existing contact point in the contact cache (btPersistentManifold). Issues reported here: http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2257 --- .../NarrowPhaseCollision/btPersistentManifold.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BulletCollision/NarrowPhaseCollision/btPersistentManifold.cpp b/src/BulletCollision/NarrowPhaseCollision/btPersistentManifold.cpp index 58f5c09c5..702ead716 100644 --- a/src/BulletCollision/NarrowPhaseCollision/btPersistentManifold.cpp +++ b/src/BulletCollision/NarrowPhaseCollision/btPersistentManifold.cpp @@ -175,7 +175,7 @@ void btPersistentManifold::AddManifoldPoint(const btManifoldPoint& newPoint) #else insertIndex = 0; #endif - + clearUserCache(m_pointCache[insertIndex]); } else {