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/makesrna/intern/rna_mesh.c | |
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/makesrna/intern/rna_mesh.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_mesh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c index d5fc422a9f9..31829145b5a 100644 --- a/source/blender/makesrna/intern/rna_mesh.c +++ b/source/blender/makesrna/intern/rna_mesh.c @@ -2232,13 +2232,13 @@ static void rna_def_mesh_vertices(BlenderRNA *brna, PropertyRNA *cprop) RNA_def_struct_sdna(srna, "Mesh"); RNA_def_struct_ui_text(srna, "Mesh Vertices", "Collection of mesh vertices"); - func = RNA_def_function(srna, "add", "ED_mesh_vertices_add"); + func = RNA_def_function(srna, "add", "ED_mesh_verts_add"); RNA_def_function_flag(func, FUNC_USE_REPORTS); parm = RNA_def_int( func, "count", 0, 0, INT_MAX, "Count", "Number of vertices to add", 0, INT_MAX); RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); # if 0 /* BMESH_TODO Remove until BMesh merge */ - func = RNA_def_function(srna, "remove", "ED_mesh_vertices_remove"); + func = RNA_def_function(srna, "remove", "ED_mesh_verts_remove"); RNA_def_function_flag(func, FUNC_USE_REPORTS); RNA_def_int(func, "count", 0, 0, INT_MAX, "Count", "Number of vertices to remove", 0, INT_MAX); # endif |