fix crashing bug on import btTriangleMeshShape of 16-bit indices

This commit is contained in:
erwin.coumans
2010-02-26 22:29:25 +00:00
parent 56f3df802e
commit 4add96ce75

View File

@@ -124,7 +124,8 @@ btTriangleIndexVertexArray* btBulletWorldImporter::createMeshInterface(btStridin
meshPart.m_numTriangles = meshData.m_meshPartsPtr[i].m_numTriangles;
meshPart.m_numVertices = meshData.m_meshPartsPtr[i].m_numVertices;
meshInterface->addIndexedMesh(meshPart);
meshInterface->addIndexedMesh(meshPart,meshPart.m_indexType);
}
return meshInterface;