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 11:10:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-28 11:10:27 +0400
commitdab41e04992941879f27ae9b402fc94c16d21389 (patch)
tree691aead46fc55ec224359e67362cde0bf0d0def9 /source/blender/makesdna/DNA_meshdata_types.h
parent4bc4c018d1975708ce580783152b66676257d67e (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.h3
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