[Bf-blender-cvs] [2879d4b636c] refactor-mesh-remove-pointers: Add comments for write access version of functions in API
Hans Goudey
noreply at git.blender.org
Fri Sep 2 16:09:14 CEST 2022
Commit: 2879d4b636cb68d0ce08f9dc14bdb5fe55110fe9
Author: Hans Goudey
Date: Fri Sep 2 08:40:10 2022 -0500
Branches: refactor-mesh-remove-pointers
https://developer.blender.org/rB2879d4b636cb68d0ce08f9dc14bdb5fe55110fe9
Add comments for write access version of functions in API
===================================================================
M source/blender/makesdna/DNA_mesh_types.h
===================================================================
diff --git a/source/blender/makesdna/DNA_mesh_types.h b/source/blender/makesdna/DNA_mesh_types.h
index 67307074ad1..51d76fd5265 100644
--- a/source/blender/makesdna/DNA_mesh_types.h
+++ b/source/blender/makesdna/DNA_mesh_types.h
@@ -322,6 +322,7 @@ typedef struct Mesh {
* into this array.
*/
blender::Span<MVert> vertices() const;
+ /** Write access to vertex data. */
blender::MutableSpan<MVert> vertices_for_write();
/**
* Array of edges, containing vertex indices. For simple triangle or quad meshes, edges could be
@@ -329,17 +330,20 @@ typedef struct Mesh {
* edge domain attributes and to support loose edges that aren't connected to faces.
*/
blender::Span<MEdge> edges() const;
+ /** Write access to edge data. */
blender::MutableSpan<MEdge> edges_for_write();
/**
* Face topology storage of the size and offset of each face's section of the face corners.
*/
blender::Span<MPoly> polygons() const;
+ /** Write access to polygon data. */
blender::MutableSpan<MPoly> polygons_for_write();
/**
* Mesh face corners that "loop" around each face, storing the vertex index and the index of the
* subsequent edge.
*/
blender::Span<MLoop> loops() const;
+ /** Write access to loop data. */
blender::MutableSpan<MLoop> loops_for_write();
#endif
} Mesh;
More information about the Bf-blender-cvs
mailing list