fix bug in btBulletWorldImpoter, thanks to Dirk Gregorius for sharing a .bullet file that reproduces the bug
This commit is contained in:
@@ -176,7 +176,7 @@ btTriangleIndexVertexArray* btBulletWorldImporter::createMeshInterface(btStridin
|
||||
meshPart.m_indexType = PHY_SHORT;
|
||||
if (meshData.m_meshPartsPtr[i].m_3indices16)
|
||||
{
|
||||
meshPart.m_triangleIndexStride = sizeof(btShortIntIndexTripletData);
|
||||
meshPart.m_triangleIndexStride = sizeof(short int)*3;//sizeof(btShortIntIndexTripletData);
|
||||
|
||||
short int* indexArray = (short int*)btAlignedAlloc(sizeof(short int)*3*meshPart.m_numTriangles,16);
|
||||
m_shortIndexArrays.push_back(indexArray);
|
||||
|
||||
Reference in New Issue
Block a user