diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-20 10:09:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-20 10:25:17 +0300 |
commit | 98ab0f173c8c5c9f34af22f9e8748e0101cc6dd1 (patch) | |
tree | 19aac1534c1225e4ff31176b4c94bafef9669ad7 /source/blender/editors/include | |
parent | 047c66279ae7f7447e5fd1cbd5baba225e8cfe84 (diff) |
Mesh: add API functions for poly & loop removal
These existed for verts & edges, add for API completeness.
Also add ED_mesh_geometry_clear,
needed to reduce memory for edit-mesh separate.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_mesh.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/editors/include/ED_mesh.h b/source/blender/editors/include/ED_mesh.h index d8d62ad6f08..fc7b0d8be8f 100644 --- a/source/blender/editors/include/ED_mesh.h +++ b/source/blender/editors/include/ED_mesh.h @@ -380,17 +380,17 @@ float ED_vgroup_vert_weight(struct Object *ob, struct bDeformGroup *dg, int vert void ED_vgroup_vert_active_mirror(struct Object *ob, int def_nr); /* mesh_data.c */ -#if 0 -void ED_mesh_geometry_add( - struct Mesh *mesh, struct ReportList *reports, int verts, int edges, int faces); -#endif -void ED_mesh_polys_add(struct Mesh *mesh, struct ReportList *reports, int count); +void ED_mesh_verts_add(struct Mesh *mesh, struct ReportList *reports, int count); void ED_mesh_edges_add(struct Mesh *mesh, struct ReportList *reports, int count); void ED_mesh_loops_add(struct Mesh *mesh, struct ReportList *reports, int count); -void ED_mesh_vertices_add(struct Mesh *mesh, struct ReportList *reports, int count); +void ED_mesh_polys_add(struct Mesh *mesh, struct ReportList *reports, int count); +void ED_mesh_verts_remove(struct Mesh *mesh, struct ReportList *reports, int count); void ED_mesh_edges_remove(struct Mesh *mesh, struct ReportList *reports, int count); -void ED_mesh_vertices_remove(struct Mesh *mesh, struct ReportList *reports, int count); +void ED_mesh_loops_remove(struct Mesh *mesh, struct ReportList *reports, int count); +void ED_mesh_polys_remove(struct Mesh *mesh, struct ReportList *reports, int count); + +void ED_mesh_geometry_clear(struct Mesh *mesh); void ED_mesh_update(struct Mesh *mesh, struct bContext *C, bool calc_edges, bool calc_edges_loose); |