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:
authorCampbell Barton <ideasman42@gmail.com>2011-12-26 01:31:19 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-26 01:31:19 +0400
commit2cd5436a81da5c15ac70bd2b80c2f062cce5d02e (patch)
tree2cc12476fb3fa653042eef99fa6b5d4d8cb290ec /source/blender/blenkernel/BKE_customdata.h
parent4ced91da47ec1e95d71beef07b218fd0290ff68a (diff)
parent02d72b5c076f4ae1b47da74fe7a60a916edad9f2 (diff)
svn merge ^/trunk/blender -r42839:42871
Diffstat (limited to 'source/blender/blenkernel/BKE_customdata.h')
-rw-r--r--source/blender/blenkernel/BKE_customdata.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_customdata.h b/source/blender/blenkernel/BKE_customdata.h
index 72e80301132..0910fa0262c 100644
--- a/source/blender/blenkernel/BKE_customdata.h
+++ b/source/blender/blenkernel/BKE_customdata.h
@@ -38,11 +38,13 @@
extern "C" {
#endif
+#include "../blenloader/BLO_sys_types.h" /* XXX, should have a more generic include for this */
+
struct BMesh;
struct ID;
struct CustomData;
struct CustomDataLayer;
-typedef unsigned int CustomDataMask;
+typedef uint64_t CustomDataMask;
/*a data type large enough to hold 1 element from any customdata layer type*/
typedef struct {unsigned char data[64];} CDBlockBytes;
@@ -69,6 +71,8 @@ extern const CustomDataMask CD_MASK_FACECORNERS;
#define CD_DUPLICATE 4 /* do a full copy of all layers, only allowed if source
has same number of elements */
+#define CD_TYPE_AS_MASK(_type) (CustomDataMask)(1 << (CustomDataMask)(_type))
+
/* Checks if the layer at physical offset layern (in data->layers) support math
* the below operations.
*/