Changeset 8393 for code/trunk/src/external/bullet/BulletCollision/CollisionShapes/btBvhTriangleMeshShape.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/CollisionShapes/btBvhTriangleMeshShape.cpp
r8351 r8393 278 278 279 279 unsigned int* gfxbase = (unsigned int*)(indexbase+nodeTriangleIndex*indexstride); 280 btAssert(indicestype==PHY_INTEGER||indicestype==PHY_SHORT );280 btAssert(indicestype==PHY_INTEGER||indicestype==PHY_SHORT||indicestype==PHY_UCHAR); 281 281 282 282 const btVector3& meshScaling = m_meshInterface->getScaling(); … … 284 284 { 285 285 286 int graphicsindex = indicestype==PHY_SHORT?((unsigned short*)gfxbase)[j]: gfxbase[j];286 int graphicsindex = indicestype==PHY_SHORT?((unsigned short*)gfxbase)[j]:indicestype==PHY_INTEGER?gfxbase[j]:((unsigned char*)gfxbase)[j]; 287 287 288 288
Note: See TracChangeset
for help on using the changeset viewer.