bmesh: fixed merge issues with navmesh (though I've not tested if it works yet).
[blender.git] / source / gameengine / Ketsji / KX_NavMeshObject.cpp
index 6765f07b34454acb0ebcbd359086e600d8fa60db..3b63c85feeac930161d48fad3156819489595aaf 100644 (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;