[Bf-blender-cvs] [854db0f] hair_immediate_fixes: enum instead of #define for cloth vertex flags.

Lukas Tönne noreply at git.blender.org
Fri Oct 10 10:32:11 CEST 2014


Commit: 854db0f0ae302c8cdbd7fb50a0763a14c1e9a847
Author: Lukas Tönne
Date:   Tue Oct 7 10:12:42 2014 +0200
Branches: hair_immediate_fixes
https://developer.blender.org/rB854db0f0ae302c8cdbd7fb50a0763a14c1e9a847

enum instead of #define for cloth vertex flags.

===================================================================

M	source/blender/blenkernel/BKE_cloth.h

===================================================================

diff --git a/source/blender/blenkernel/BKE_cloth.h b/source/blender/blenkernel/BKE_cloth.h
index b3d0c46..940d8ea 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];




More information about the Bf-blender-cvs mailing list