merge from 21113 to 21377
[blender.git] / source / blender / blenkernel / intern / cdderivedmesh.c
index 931ba8cebeaa5c7f7ead27b2cf510517a7b89dc4..16f6936935aa2ec994270fd8ea69347e7c7e3a8f 100644 (file)
@@ -1373,7 +1373,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;