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:
authorTon Roosendaal <ton@blender.org>2008-12-19 15:48:30 +0300
committerTon Roosendaal <ton@blender.org>2008-12-19 15:48:30 +0300
commit63195b01794e42243b1bcac01de43eccaa89fade (patch)
tree0f08883942e937350b580700b79eeea452f9b699 /source/blender/editors/include/ED_types.h
parentd92b45d558b861ef3c314f1d9c926113aa36326c (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.h14
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 */