From 4add96ce753a7c78c57b074e10035f967949bae3 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Fri, 26 Feb 2010 22:29:25 +0000 Subject: [PATCH] fix crashing bug on import btTriangleMeshShape of 16-bit indices --- Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp b/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp index 7a4c04b80..32339e35e 100644 --- a/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp +++ b/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp @@ -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;