More DM func renames, fixing some build breaks, renaming more stuff, also seems like...
[blender.git] / source / blender / blenkernel / intern / editderivedbmesh.c
index 55dd20061d8fbf2cce761e20334ff5aef80e6ca9..08c4ea5fa00b0c9c214a3a8e23096fa80d5270fe 100644 (file)
@@ -1276,6 +1276,13 @@ static int bmDM_getNumTessFaces(DerivedMesh *dm)
        return bmdm->tc->tottri;
 }
 
+static int bmDM_getNumLoops(DerivedMesh *dm)
+{
+       EditDerivedBMesh *bmdm= (EditDerivedBMesh*) dm;
+       
+       return bmdm->tc->bm->totloop;
+}
+
 static int bmDM_getNumPolys(DerivedMesh *dm)
 {
        EditDerivedBMesh *bmdm= (EditDerivedBMesh*) dm;
@@ -1625,6 +1632,7 @@ DerivedMesh *getEditDerivedBMesh(BMEditMesh *em, Object *UNUSED(ob),
        bmdm->dm.getNumVerts = bmDM_getNumVerts;
        bmdm->dm.getNumEdges = bmDM_getNumEdges;
        bmdm->dm.getNumTessFaces = bmDM_getNumTessFaces;
+       bmdm->dm.getNumLoops = bmDM_getNumLoops;
        bmdm->dm.getNumPolys = bmDM_getNumPolys;
 
        bmdm->dm.getVert = bmDM_getVert;