enum instead of #define for cloth vertex flags.

This commit is contained in:
2014-10-07 10:12:42 +02:00
parent ce53303f61
commit 0b0acb6124
+4 -2
View File
@@ -56,8 +56,10 @@ struct PartDeflect;
#define ALMOST_ZERO FLT_EPSILON
/* Bits to or into the ClothVertex.flags. */
#define CLOTH_VERT_FLAG_PINNED 1
#define CLOTH_VERT_FLAG_NOSELFCOLL 2 /* vertex NOT used for self collisions */
typedef enum eClothVertexFlag {
CLOTH_VERT_FLAG_PINNED = 1,
CLOTH_VERT_FLAG_NOSELFCOLL = 2, /* vertex NOT used for self collisions */
} eClothVertexFlag;
typedef struct ClothHairRoot {
float loc[3];