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:
Diffstat (limited to 'source/blender/blenkernel/BKE_mesh_mapping.h')
-rw-r--r--source/blender/blenkernel/BKE_mesh_mapping.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_mesh_mapping.h b/source/blender/blenkernel/BKE_mesh_mapping.h
index ee9e63e6975..f3f6b556a07 100644
--- a/source/blender/blenkernel/BKE_mesh_mapping.h
+++ b/source/blender/blenkernel/BKE_mesh_mapping.h
@@ -129,4 +129,13 @@ int *BKE_mesh_calc_smoothgroups(
const struct MLoop *mloop, const int totloop,
int *r_totgroup, const bool use_bitflags);
+/* No good (portable) way to have exported inlined functions... */
+#define BKE_MESH_TESSFACE_VINDEX_ORDER(_mf, _v) ( \
+ (CHECK_TYPE_INLINE(_mf, MFace *), CHECK_TYPE_INLINE(_v, unsigned int)), \
+ ((_mf->v1 == _v) ? 0 : \
+ (_mf->v2 == _v) ? 1 : \
+ (_mf->v3 == _v) ? 2 : \
+ (_mf->v4 && _mf->v4 == _v) ? 3 : -1) \
+ )
+
#endif /* __BKE_MESH_MAPPING_H__ */