diff options
author | Hans Goudey <h.goudey@me.com> | 2022-04-26 16:06:04 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-04-26 16:06:04 +0300 |
commit | db45292d8e0c29f399cba191e33f8388d9254357 (patch) | |
tree | c5540f9c433449f1d0e1d05a9a7daa209db8b62f /source/blender/blenkernel/intern/mesh.cc | |
parent | b7458f909cc2ada343207603f0ecbf0c42b28173 (diff) |
Cleanup: Move anonymous attribute removal to geometry component
Implementing removal of anonymous attributes with `GeometryComponent`
instead of `Mesh` makes it more reusable for other types like curves.
Diffstat (limited to 'source/blender/blenkernel/intern/mesh.cc')
-rw-r--r-- | source/blender/blenkernel/intern/mesh.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/mesh.cc b/source/blender/blenkernel/intern/mesh.cc index c13a2bc794a..628f59ae449 100644 --- a/source/blender/blenkernel/intern/mesh.cc +++ b/source/blender/blenkernel/intern/mesh.cc @@ -1930,14 +1930,6 @@ void BKE_mesh_vert_coords_apply_with_mat4(Mesh *mesh, BKE_mesh_normals_tag_dirty(mesh); } -void BKE_mesh_anonymous_attributes_remove(Mesh *mesh) -{ - CustomData_free_layers_anonymous(&mesh->vdata, mesh->totvert); - CustomData_free_layers_anonymous(&mesh->edata, mesh->totedge); - CustomData_free_layers_anonymous(&mesh->pdata, mesh->totpoly); - CustomData_free_layers_anonymous(&mesh->ldata, mesh->totloop); -} - void BKE_mesh_calc_normals_split_ex(Mesh *mesh, MLoopNorSpaceArray *r_lnors_spacearr) { float(*r_loopnors)[3]; |