diff options
Diffstat (limited to 'source/blender/makesdna/DNA_meshdata_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_meshdata_types.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/source/blender/makesdna/DNA_meshdata_types.h b/source/blender/makesdna/DNA_meshdata_types.h index f1c2dcaae68..1950e4d5e3b 100644 --- a/source/blender/makesdna/DNA_meshdata_types.h +++ b/source/blender/makesdna/DNA_meshdata_types.h @@ -19,12 +19,11 @@ extern "C" { * \{ */ /** - * Mesh Vertices. - * - * Typically accessed from #Mesh.verts() + * Deprecated mesh vertex data structure. Now stored with generic attributes. */ +#ifdef DNA_DEPRECATED_ALLOW typedef struct MVert { - float co[3]; + float co_legacy[3]; /** * Deprecated flag for storing hide status and selection, which are now stored in separate * generic attributes. Kept for file read and write. @@ -38,8 +37,6 @@ typedef struct MVert { } MVert; /** #MVert.flag */ - -#ifdef DNA_DEPRECATED_ALLOW enum { /** Deprecated selection status. Now stored in ".select_vert" attribute. */ /* SELECT = (1 << 0), */ @@ -111,7 +108,7 @@ enum { * Typically accessed with #Mesh.loops(). */ typedef struct MLoop { - /** Vertex index into an #MVert array. */ + /** Vertex index. */ unsigned int v; /** Edge index into an #MEdge array. */ unsigned int e; @@ -152,7 +149,7 @@ enum { /** * #MLoopTri's are lightweight triangulation data, * for functionality that doesn't support ngons (#MPoly). - * This is cache data created from (#MPoly, #MLoop & #MVert arrays). + * This is cache data created from (#MPoly, #MLoop & position arrays). * There is no attempt to maintain this data's validity over time, * any changes to the underlying mesh invalidate the #MLoopTri array, * which will need to be re-calculated. @@ -179,9 +176,9 @@ enum { * * // access vertex locations. * float *vtri_co[3] = { - * mvert[mloop[lt->tri[0]].v].co, - * mvert[mloop[lt->tri[1]].v].co, - * mvert[mloop[lt->tri[2]].v].co, + * positions[mloop[lt->tri[0]].v], + * positions[mloop[lt->tri[1]].v], + * positions[mloop[lt->tri[2]].v], * }; * * // access UV coordinates (works for all loop data, vertex colors... etc). |