Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2005-08-03 22:48:22 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-08-03 22:48:22 +0400
commitb03a20d2721c938f0e65bf9a426fd44028c4592a (patch)
tree21d5a1f1d1bb5924b6cceec5eb1e34c1afea491f /source/blender/makesdna/DNA_sensor_types.h
parent2cc6d565cbc9da005e1c13828c6b3a3d46cd32cb (diff)
- 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.
Diffstat (limited to 'source/blender/makesdna/DNA_sensor_types.h')
-rw-r--r--source/blender/makesdna/DNA_sensor_types.h7
1 files changed, 2 insertions, 5 deletions
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