style cleanup, brackets in else/if, some indentation.
[blender.git] / source / blender / blenkernel / intern / navmesh_conversion.c
index e674973..cdba036 100644 (file)
@@ -134,8 +134,8 @@ int buildRawVertIndicesData(DerivedMesh* dm, int *nverts_r, float **verts_r,
        }
 
        //calculate number of tris
-       nfaces = dm->getNumFaces(dm);
-       faces = dm->getFaceArray(dm);
+       nfaces = dm->getNumTessFaces(dm);
+       faces = dm->getTessFaceArray(dm);
        ntris = nfaces;
        for (fi=0; fi<nfaces; fi++)
        {
@@ -248,8 +248,7 @@ int buildPolygonsByDetailedMeshes(const int vertsPerPoly, const int npolys,
                                //move to next edge                                     
                                edge = (edge+1)%3;
                        }
-                       else
-                       {
+                       else {
                                //move to next tri
                                int twinedge = -1;
                                for (k=0; k<3; k++)