From be038b844cb53bc228d3e98bfe09071560930cde Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 7 Sep 2022 00:06:31 -0500 Subject: Cleanup: Tweak naming for recently added mesh accessors Use `verts` instead of `vertices` and `polys` instead of `polygons` in the API added in 05952aa94d33eeb50. This aligns better with existing naming where the shorter names are much more common. --- source/blender/makesdna/DNA_mesh_types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h index 6b48f1e029f..f14ec52decc 100644 --- a/source/blender/makesdna/DNA_mesh_types.h +++ b/source/blender/makesdna/DNA_mesh_types.h @@ -321,9 +321,9 @@ typedef struct Mesh { * Array of vertex positions (and various other data). Edges and faces are defined by indices * into this array. */ - blender::Span vertices() const; + blender::Span verts() const; /** Write access to vertex data. */ - blender::MutableSpan vertices_for_write(); + blender::MutableSpan verts_for_write(); /** * Array of edges, containing vertex indices. For simple triangle or quad meshes, edges could be * calculated from the #MPoly and #MLoop arrays, however, edges need to be stored explicitly to @@ -335,9 +335,9 @@ typedef struct Mesh { /** * Face topology storage of the size and offset of each face's section of the face corners. */ - blender::Span polygons() const; + blender::Span polys() const; /** Write access to polygon data. */ - blender::MutableSpan polygons_for_write(); + blender::MutableSpan polys_for_write(); /** * Mesh face corners that "loop" around each face, storing the vertex index and the index of the * subsequent edge. -- cgit v1.2.3