diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2008-01-10 15:31:40 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2008-01-10 15:31:40 +0300 |
commit | 7addde207d718a96bcdd4cf2e00c11a880e01c6e (patch) | |
tree | 115941201b763d05ea5dd302168a45e633237ea7 /source/blender/makesdna/DNA_userdef_types.h | |
parent | cd02005fe446eed724745a4073d7df8b4654a1f7 (diff) |
* convert the nice enums to #defines for two reasons
1) < kaito> enums are not allowed in dna anyway
2) linking fails for the yafray api.
Diffstat (limited to 'source/blender/makesdna/DNA_userdef_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index e70542e5223..cbbd729cb83 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -262,18 +262,14 @@ extern UserDef U; /* from usiblender.c !!!! */ #define USER_SHOW_FPS (1 << 21) /* Auto-Keying mode */ -enum { - AUTOKEY_MODE_OFF = 0, - AUTOKEY_MODE_NORMAL, - AUTOKEY_MODE_EDITKEYS -} eAutoKeyframe_Mode; +#define AUTOKEY_MODE_OFF 0 +#define AUTOKEY_MODE_NORMAL 1 +#define AUTOKEY_MODE_EDITKEYS 2 /* Auto-Keying flag */ -enum { - AUTOKEY_FLAG_INSERTAVAIL = (1<<0), - AUTOKEY_FLAG_INSERTNEEDED = (1<<1), - AUTOKEY_FLAG_AUTOMATKEY = (1<<2) -} eAutoKeyframe_Flag; +#define AUTOKEY_FLAG_INSERTAVAIL (1<<0) +#define AUTOKEY_FLAG_INSERTNEEDED (1<<1) +#define AUTOKEY_FLAG_AUTOMATKEY (1<<2) /* Auto-Keying macros */ #define IS_AUTOKEY_MODE(mode) (U.autokey_mode == AUTOKEY_MODE_##mode) |