Commit: c0d0f1b3e9583c1c6fc19b17b0241fa2ea3546af
Author: Lukas Tönne
Date: Thu Nov 27 09:35:54 2014 +0100
Branches: hair_immediate_fixes
https://developer.blender.org/rBc0d0f1b3e9583c1c6fc19b17b0241fa2ea3546af
New customdata type for mesh surface samples.
===================================================================
M source/blender/blenkernel/intern/customdata.c
M source/blender/makesdna/DNA_customdata_types.h
===================================================================
diff --git a/source/blender/blenkernel/intern/customdata.c
b/source/blender/blenkernel/intern/customdata.c
index 6aeb5c1..99d03c4 100644
--- a/source/blender/blenkernel/intern/customdata.c
+++ b/source/blender/blenkernel/intern/customdata.c
@@ -1223,6 +1223,8 @@ static const LayerTypeInfo LAYERTYPEINFO[CD_NUMTYPES] = {
{sizeof(HairEditCurve), "HairEditCurve", 1, NULL, NULL, NULL, NULL,
NULL, NULL},
/* 43: CD_HAIR_VERT */
{sizeof(HairEditVertex), "HairEditVertex", 1, NULL, NULL, NULL, NULL,
NULL, NULL},
+ /* 44: CD_MESH_SAMPLE */
+ {sizeof(MSurfaceSample), "MSurfaceSample", 1, NULL, NULL, NULL, NULL,
NULL, NULL},
};
/* note, numbers are from trunk and need updating for bmesh */
diff --git a/source/blender/makesdna/DNA_customdata_types.h
b/source/blender/makesdna/DNA_customdata_types.h
index f1fb927..da40649 100644
--- a/source/blender/makesdna/DNA_customdata_types.h
+++ b/source/blender/makesdna/DNA_customdata_types.h
@@ -63,7 +63,7 @@ typedef struct CustomDataExternal {
* layers, each with a data type (e.g. MTFace, MDeformVert, etc.). */
typedef struct CustomData {
CustomDataLayer *layers; /* CustomDataLayers, ordered by type */
- int typemap[44]; int pad; /* runtime only! - maps types to indices
of first layer of that type,
+ int typemap[45]; /* runtime only! - maps types to indices
of first layer of that type,
* MUST be >= CD_NUMTYPES, but we cant
use a define here.
* Correct size is ensured in
CustomData_update_typemap assert() */
int totlayer, maxlayer; /* number of layers, size of layers array
*/
@@ -124,7 +124,9 @@ enum {
CD_HAIR_CURVE = 42,
CD_HAIR_VERT = 43,
- CD_NUMTYPES = 44
+ CD_MESH_SAMPLE = 44,
+
+ CD_NUMTYPES = 45
};
/* Bits for CustomDataMask */
@@ -176,6 +178,8 @@ enum {
#define CD_MASK_HAIR_CURVE (1LL << CD_HAIR_CURVE)
#define CD_MASK_HAIR_VERT (1LL << CD_HAIR_VERT)
+#define CD_MASK_MESH_SAMPLE (1LL << CD_MESH_SAMPLE)
+
/* CustomData.flag */
enum {
/* Indicates layer should not be copied by CustomData_from_template or
CustomData_copy_data */
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs