diff options
Diffstat (limited to 'source/blender/blenkernel/intern/cdderivedmesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/cdderivedmesh.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/cdderivedmesh.c b/source/blender/blenkernel/intern/cdderivedmesh.c index 025fdbc2262..34cff1b9b93 100644 --- a/source/blender/blenkernel/intern/cdderivedmesh.c +++ b/source/blender/blenkernel/intern/cdderivedmesh.c @@ -2601,6 +2601,14 @@ void CDDM_lower_num_edges(DerivedMesh *dm, int numEdges) dm->numEdgeData = numEdges; } +void CDDM_lower_num_tessfaces(DerivedMesh *dm, int numTessFaces) +{ + if (numTessFaces < dm->numTessFaceData) + CustomData_free_elem(&dm->faceData, numTessFaces, dm->numTessFaceData-numTessFaces); + + dm->numTessFaceData = numTessFaces; +} + void CDDM_lower_num_polys(DerivedMesh *dm, int numPolys) { if (numPolys < dm->numPolyData) |