diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-10-07 12:12:42 +0400 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:04 +0300 |
commit | 0b0acb612436fcbc7889f480a2faba2b2dd1bfb5 (patch) | |
tree | 0e1f52c7f362275961d97b4841fab7cc9c0b175a /source/blender/blenkernel/BKE_cloth.h | |
parent | ce53303f61a644a6e9ab13841c5cbcea940ecd23 (diff) |
enum instead of #define for cloth vertex flags.
Diffstat (limited to 'source/blender/blenkernel/BKE_cloth.h')
-rw-r--r-- | source/blender/blenkernel/BKE_cloth.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_cloth.h b/source/blender/blenkernel/BKE_cloth.h index b3d0c46779d..940d8eaa05d 100644 --- a/source/blender/blenkernel/BKE_cloth.h +++ b/source/blender/blenkernel/BKE_cloth.h @@ -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]; |