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:
authorKen Hughes <khughes@pacific.edu>2005-12-16 00:54:00 +0300
committerKen Hughes <khughes@pacific.edu>2005-12-16 00:54:00 +0300
commit826591d778dc30fa727473757b11eb8b31cec5ab (patch)
tree1e5ca4c4547b7ed3276f79e8d8e852a478847331 /source/blender/makesdna/DNA_material_types.h
parent641f3cd72ddee21efc542e55c8f5178edab7fd88 (diff)
-- Added BPy support for new Material modes. Recent additions of new mode
bits broke input-checking in the API, so added a bitmask #define in DNA_material_types.h which contains all valid mode bits.
Diffstat (limited to 'source/blender/makesdna/DNA_material_types.h')
-rw-r--r--source/blender/makesdna/DNA_material_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_material_types.h b/source/blender/makesdna/DNA_material_types.h
index 5ef327502e1..451b8ba692f 100644
--- a/source/blender/makesdna/DNA_material_types.h
+++ b/source/blender/makesdna/DNA_material_types.h
@@ -157,6 +157,8 @@ typedef struct Material {
#define MA_TANGENT_STR 0x1000000
#define MA_SHADBUF 0x2000000
+#define MA_MODE_MASK 0x3ffffff /* all valid mode bits */
+
/* diff_shader */
#define MA_DIFF_LAMBERT 0
#define MA_DIFF_ORENNAYAR 1