diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-21 12:47:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-21 12:47:36 +0400 |
commit | 320473120958cf4c978eb12ca37e07dec8ed0e71 (patch) | |
tree | 41daf0a050336f073741793b932c04313c9372de /source/blender/makesdna | |
parent | 988df245519352ab80d8ad488660a0a2f7a963d3 (diff) |
code cleanup: don't use magic numbers for curve flag & use bool args for curvemapping_changed()
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_color_types.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_color_types.h b/source/blender/makesdna/DNA_color_types.h index 1f8fdd20dda..4ead26c04f3 100644 --- a/source/blender/makesdna/DNA_color_types.h +++ b/source/blender/makesdna/DNA_color_types.h @@ -47,8 +47,10 @@ typedef struct CurveMapPoint { } CurveMapPoint; /* curvepoint->flag */ -#define CUMA_SELECT 1 -#define CUMA_VECTOR 2 +enum { + CUMA_SELECT = 1, + CUMA_VECTOR = 2 +}; typedef struct CurveMap { short totpoint, flag; |