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:
authorNicholas Bishop <nicholasbishop@gmail.com>2008-05-30 05:02:40 +0400
committerNicholas Bishop <nicholasbishop@gmail.com>2008-05-30 05:02:40 +0400
commit22c4238dd1b25f0097120dde690744a28cff430d (patch)
tree494f9d64a647c8da7465815a12d1186108f59577 /source/blender/makesdna
parent682715e62e0e621934681ae60dc2ead77f3344f6 (diff)
== Multires ==
* Added an MDisps customdata layer to store multires displacements in
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_customdata_types.h4
-rw-r--r--source/blender/makesdna/DNA_meshdata_types.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_customdata_types.h b/source/blender/makesdna/DNA_customdata_types.h
index 73a39abac55..478d28a99bf 100644
--- a/source/blender/makesdna/DNA_customdata_types.h
+++ b/source/blender/makesdna/DNA_customdata_types.h
@@ -66,7 +66,8 @@ typedef struct CustomData {
#define CD_PROP_STR 12
#define CD_ORIGSPACE 13 /* for modifier stack face location mapping */
#define CD_ORCO 14
-#define CD_NUMTYPES 15
+#define CD_MDISPS 15
+#define CD_NUMTYPES 16
/* Bits for CustomDataMask */
#define CD_MASK_MVERT (1 << CD_MVERT)
@@ -84,6 +85,7 @@ typedef struct CustomData {
#define CD_MASK_PROP_STR (1 << CD_PROP_STR)
#define CD_MASK_ORIGSPACE (1 << CD_ORIGSPACE)
#define CD_MASK_ORCO (1 << CD_ORCO)
+#define CD_MASK_MDISPS (1 << CD_MDISPS)
/* CustomData.flag */
diff --git a/source/blender/makesdna/DNA_meshdata_types.h b/source/blender/makesdna/DNA_meshdata_types.h
index 79c1710a897..d2ed0e723ba 100644
--- a/source/blender/makesdna/DNA_meshdata_types.h
+++ b/source/blender/makesdna/DNA_meshdata_types.h
@@ -100,6 +100,10 @@ typedef struct OrigSpaceFace {
float uv[4][2];
} OrigSpaceFace;
+typedef struct MDisps {
+ float (*disps)[3];
+} MDisps;
+
/* Multiresolution modeling */
typedef struct MultiresCol {
float a, r, g, b;