diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-17 01:55:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-17 01:55:47 +0300 |
commit | 98f43ba3e4cb0a26eb62ea98e27a313265f8948c (patch) | |
tree | 5a54513b8b0cef1b9a66be0cd04bb13d21c78643 /source/blender/makesdna/DNA_constraint_types.h | |
parent | 4e3562f45ad6109fe3913c5ec7b2d5ff9c6f97bc (diff) |
Cleanup: use bit-shifted flag definitions in DNA
Diffstat (limited to 'source/blender/makesdna/DNA_constraint_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_constraint_types.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/makesdna/DNA_constraint_types.h b/source/blender/makesdna/DNA_constraint_types.h index e49cd65fa9b..424c3ed7dd0 100644 --- a/source/blender/makesdna/DNA_constraint_types.h +++ b/source/blender/makesdna/DNA_constraint_types.h @@ -842,8 +842,8 @@ typedef enum eObjectSolver_Flags { } eObjectSolver_Flags; /* Rigid-Body Constraint */ -#define CONSTRAINT_DRAW_PIVOT 0x40 -#define CONSTRAINT_DISABLE_LINKED_COLLISION 0x80 +#define CONSTRAINT_DRAW_PIVOT (1 << 6) +#define CONSTRAINT_DISABLE_LINKED_COLLISION (1 << 7) /* ObjectSolver Constraint -> flag */ typedef enum eStretchTo_Flags { @@ -852,10 +852,10 @@ typedef enum eStretchTo_Flags { } eStretchTo_Flags; /* important: these defines need to match up with PHY_DynamicTypes headerfile */ -#define CONSTRAINT_RB_BALL 1 -#define CONSTRAINT_RB_HINGE 2 -#define CONSTRAINT_RB_CONETWIST 4 -#define CONSTRAINT_RB_VEHICLE 11 -#define CONSTRAINT_RB_GENERIC6DOF 12 +#define CONSTRAINT_RB_BALL 1 +#define CONSTRAINT_RB_HINGE 2 +#define CONSTRAINT_RB_CONETWIST 4 +#define CONSTRAINT_RB_VEHICLE 11 +#define CONSTRAINT_RB_GENERIC6DOF 12 #endif |