Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-09-07 08:06:31 +0300
committerHans Goudey <h.goudey@me.com>2022-09-07 08:06:31 +0300
commitbe038b844cb53bc228d3e98bfe09071560930cde (patch)
tree13de4a3fc3b49a8b2075a0413dc8261603fbc718 /source/blender/makesdna
parent20daaeffce4cf9bfe48ab7c84cb9e2b1d71d2c91 (diff)
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.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_mesh_types.h8
1 files changed, 4 insertions, 4 deletions
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<MVert> vertices() const;
+ blender::Span<MVert> verts() const;
/** Write access to vertex data. */
- blender::MutableSpan<MVert> vertices_for_write();
+ blender::MutableSpan<MVert> 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<MPoly> polygons() const;
+ blender::Span<MPoly> polys() const;
/** Write access to polygon data. */
- blender::MutableSpan<MPoly> polygons_for_write();
+ blender::MutableSpan<MPoly> polys_for_write();
/**
* Mesh face corners that "loop" around each face, storing the vertex index and the index of the
* subsequent edge.