From b03a20d2721c938f0e65bf9a426fd44028c4592a Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 3 Aug 2005 18:48:22 +0000 Subject: - got rid of silly #define ..._BIT, #define ... (1<<..._BIT) stuff - switched almost all uiDefBut(..., TOG|BIT|..) to use UiDefButBit and the name of the actual bit define instead of just a magic constant, this makes searching the code much nicer. most of the credit here goes to LetterRip who did almost all of the conversions, I mostly just checked them over. --- source/blender/makesdna/DNA_sensor_types.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source/blender/makesdna/DNA_sensor_types.h') diff --git a/source/blender/makesdna/DNA_sensor_types.h b/source/blender/makesdna/DNA_sensor_types.h index c56fe81ca19..4df3ecb5a11 100644 --- a/source/blender/makesdna/DNA_sensor_types.h +++ b/source/blender/makesdna/DNA_sensor_types.h @@ -213,11 +213,8 @@ typedef struct bJoystickSensor { #define SENS_NEG_PULSE_MODE 4 /* sensor->suppress */ -#define SENS_SUPPRESS_POSITIVE_BIT 0 -#define SENS_SUPPRESS_NEGATIVE_BIT 1 - -#define SENS_SUPPRESS_POSITIVE (1 << SENS_SUPPRESS_POSITIVE_BIT) -#define SENS_SUPPRESS_NEGATIVE (1 << SENS_SUPPRESS_NEGATIVE_BIT) +#define SENS_SUPPRESS_POSITIVE (1 << 0) +#define SENS_SUPPRESS_NEGATIVE (1 << 1) /* collision, ray sensor modes: */ /* A little bit fake: when property is active, the first bit is -- cgit v1.2.3