svn merge ^/trunk/blender -r43830:43864
[blender.git] / source / gameengine / Ketsji / KX_NavMeshObject.cpp
index f92319e508ba4d6808e88c75691da79b826e2acb..e6f8d7175dc57de8090f9ab4c13ce48d06931275 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;