diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-28 11:10:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-28 11:10:27 +0400 |
commit | dab41e04992941879f27ae9b402fc94c16d21389 (patch) | |
tree | 691aead46fc55ec224359e67362cde0bf0d0def9 /source/blender/makesdna/DNA_meshdata_types.h | |
parent | 4bc4c018d1975708ce580783152b66676257d67e (diff) |
macro for getting next/previous MPoly loops
Diffstat (limited to 'source/blender/makesdna/DNA_meshdata_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_meshdata_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_meshdata_types.h b/source/blender/makesdna/DNA_meshdata_types.h index 1f2612ed27a..eefa2278472 100644 --- a/source/blender/makesdna/DNA_meshdata_types.h +++ b/source/blender/makesdna/DNA_meshdata_types.h @@ -239,6 +239,9 @@ typedef struct MRecast{ /* flag ME_HIDE==16 is used here too */ #define ME_DRAW_ACT 4 +#define ME_POLY_LOOP_PREV(mloop, mp, i) (&(mloop)[(mp)->loopstart + (((i) + (mp)->totloop - 1) % (mp)->totloop)]) +#define ME_POLY_LOOP_NEXT(mloop, mp, i) (&(mloop)[(mp)->loopstart + (((i) + 1) % (mp)->totloop)]) + /* mselect->type */ #define ME_VSEL 0 #define ME_ESEL 1 |