bmesh: fixed merge issues with navmesh (though I've not tested if it works yet).

also fixed a small crasher in bridge.
This commit is contained in:
2011-11-08 00:20:50 +00:00
parent d424e1454b
commit aea95c7860
9 changed files with 119 additions and 55 deletions

View File

@@ -112,7 +112,7 @@ bool KX_NavMeshObject::BuildVertIndArrays(float *&vertices, int& nverts,
{
DerivedMesh* dm = mesh_create_derived_no_virtual(KX_GetActiveScene()->GetBlenderScene(), GetBlenderObject(),
NULL, CD_MASK_MESH);
int* recastData = (int*) dm->getFaceDataArray(dm, CD_RECAST);
int* recastData = (int*) dm->getTessFaceDataArray(dm, CD_RECAST);
if (recastData)
{
int *dtrisToPolysMap=NULL, *dtrisToTrisMap=NULL, *trisToFacesMap=NULL;