diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-19 15:48:30 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-19 15:48:30 +0300 |
commit | 63195b01794e42243b1bcac01de43eccaa89fade (patch) | |
tree | 0f08883942e937350b580700b79eeea452f9b699 /source/blender/editors/include/ED_types.h | |
parent | d92b45d558b861ef3c314f1d9c926113aa36326c (diff) |
2.5
Compile fix; MAXFLOAT is not defined uniformly on platforms.
Note for the coders:
ED_types.h: has editor wide defines and structs
ED_util.h: has editor wide functions
Both includes also are containing old cruft to get things
to compile (and work), for later cleanup.
Diffstat (limited to 'source/blender/editors/include/ED_types.h')
-rw-r--r-- | source/blender/editors/include/ED_types.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_types.h b/source/blender/editors/include/ED_types.h index ec5dce0c70d..2ff89f97e98 100644 --- a/source/blender/editors/include/ED_types.h +++ b/source/blender/editors/include/ED_types.h @@ -35,6 +35,20 @@ #define SELECT 1 #define ACTIVE 2 +/* nonstandard define, sometimes in math.h */ +#ifndef MAXFLOAT +#define MAXFLOAT ((float)3.40282347e+38) +#endif + +/* buttons */ +#define XIC 20 +#define YIC 20 + +/* proposal = put scene pointers on function calls? */ +#define BASACT (scene->basact) +#define OBACT (BASACT? BASACT->object: 0) + + #endif /* ED_TYPES_H */ |