fix crashing bug on import btTriangleMeshShape of 16-bit indices
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user