From 5454652e44d2e8fcd388148690c41434fe8d2be7 Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Sat, 19 Mar 2011 20:23:38 +0000 Subject: [PATCH] fix bug in btBulletWorldImpoter, thanks to Dirk Gregorius for sharing a .bullet file that reproduces the bug --- Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp b/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp index 0230e2e9c..f9d386546 100644 --- a/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp +++ b/Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp @@ -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);