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:
authorCampbell Barton <ideasman42@gmail.com>2011-12-28 08:43:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-28 08:43:29 +0400
commit4bc4c018d1975708ce580783152b66676257d67e (patch)
tree1cca0c1cc078adf6160a3a53a29839056e0aec64 /source/blender/makesdna/DNA_meshdata_types.h
parent74b1a6465fa40e675cbf59937426cfdc037905e2 (diff)
set mloop edge and vertex as unsigned ints since face/edge reference verts as unsigned ints too
Diffstat (limited to 'source/blender/makesdna/DNA_meshdata_types.h')
-rw-r--r--source/blender/makesdna/DNA_meshdata_types.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_meshdata_types.h b/source/blender/makesdna/DNA_meshdata_types.h
index d1b530dae73..1f2612ed27a 100644
--- a/source/blender/makesdna/DNA_meshdata_types.h
+++ b/source/blender/makesdna/DNA_meshdata_types.h
@@ -77,8 +77,9 @@ typedef struct MCol {
/*new face structure, replaces MFace, which is now
only used for storing tesselations.*/
typedef struct MPoly {
- /*offset into loop array and number of loops in the face*/
- int loopstart, totloop;
+ /* offset into loop array and number of loops in the face */
+ int loopstart;
+ int totloop; /* keep signed since we need to subtract when getting the previous loop */
short mat_nr;
char flag, pad;
} MPoly;
@@ -86,8 +87,8 @@ typedef struct MPoly {
/*the e here is because we want to move away from
relying on edge hashes.*/
typedef struct MLoop {
- int v; /*vertex index*/
- int e; /*edge index*/
+ unsigned int v; /*vertex index*/
+ unsigned int e; /*edge index*/
} MLoop;
typedef struct MTexPoly{
@@ -243,6 +244,9 @@ typedef struct MRecast{
#define ME_ESEL 1
#define ME_FSEL 2
+/* mloop->v */
+#define ME_LOOP_INVALID_INDEX ((unsigned int) -1)
+
/* mtface->flag */
#define TF_SELECT 1 /* use MFace hide flag (after 2.43), should be able to reuse after 2.44 */
#define TF_ACTIVE 2 /* deprecated! */