Undo revision 23130 which was a merge with 2.5, a messy one because I did something...
[blender.git] / source / blender / blenkernel / intern / cdderivedmesh.c
index 57ef920..706eece 100644 (file)
@@ -1220,7 +1220,7 @@ void CDDM_calc_edges(DerivedMesh *dm)
        BLI_edgehashIterator_free(ehi);
 
        /* free old CustomData and assign new one */
-       CustomData_free(&dm->edgeData, dm->numVertData);
+       CustomData_free(&dm->edgeData, dm->numEdgeData);
        dm->edgeData = edgeData;
        dm->numEdgeData = numEdges;