Changeset 8393 for code/trunk/src/external/bullet/BulletCollision/CollisionDispatch/btCollisionDispatcher.cpp
- Timestamp:
- May 3, 2011, 5:07:42 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/external/bullet/BulletCollision/CollisionDispatch/btCollisionDispatcher.cpp
r8351 r8393 93 93 } else 94 94 { 95 mem = btAlignedAlloc(sizeof(btPersistentManifold),16); 96 95 //we got a pool memory overflow, by default we fallback to dynamically allocate memory. If we require a contiguous contact pool then assert. 96 if ((m_dispatcherFlags&CD_DISABLE_CONTACTPOOL_DYNAMIC_ALLOCATION)==0) 97 { 98 mem = btAlignedAlloc(sizeof(btPersistentManifold),16); 99 } else 100 { 101 btAssert(0); 102 //make sure to increase the m_defaultMaxPersistentManifoldPoolSize in the btDefaultCollisionConstructionInfo/btDefaultCollisionConfiguration 103 return 0; 104 } 97 105 } 98 106 btPersistentManifold* manifold = new(mem) btPersistentManifold (body0,body1,0,contactBreakingThreshold,contactProcessingThreshold); … … 173 181 { 174 182 //broadphase filtering already deals with this 175 if ((body0->isStaticObject() || body0->isKinematicObject()) && 176 (body1->isStaticObject() || body1->isKinematicObject())) 183 if (body0->isStaticOrKinematicObject() && body1->isStaticOrKinematicObject()) 177 184 { 178 185 m_dispatcherFlags |= btCollisionDispatcher::CD_STATIC_STATIC_REPORTED;
Note: See TracChangeset
for help on using the changeset viewer.