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-28 13:14:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-12-28 13:14:09 +0400
commit5d46acd59fb1efb1b439f8a982c515ba7ad864d5 (patch)
tree50b966fc8d39b44e8e685c57165ca3636d114dd1 /source/blender/blenkernel/intern/customdata.c
parent317b3c7f3fc70b34bb43bb8a1fafd42c4f84c08b (diff)
minor edits and correcton to assert
Diffstat (limited to 'source/blender/blenkernel/intern/customdata.c')
-rw-r--r--source/blender/blenkernel/intern/customdata.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c
index f3bb190541a..1678642a248 100644
--- a/source/blender/blenkernel/intern/customdata.c
+++ b/source/blender/blenkernel/intern/customdata.c
@@ -1138,6 +1138,7 @@ const CustomDataMask CD_MASK_FACECORNERS =
CD_MASK_MTFACE | CD_MASK_MCOL | CD_MASK_MTEXPOLY | CD_MASK_MLOOPUV |
CD_MASK_MLOOPCOL;
+
static const LayerTypeInfo *layerType_getInfo(int type)
{
if(type < 0 || type >= CD_NUMTYPES) return NULL;
@@ -1163,7 +1164,7 @@ void CustomData_update_typemap(CustomData *data)
int i, lasttype = -1;
/* since we cant do in a pre-processor do here as an assert */
- BLI_assert(sizeof(data->typemap) / sizeof(int) <= CD_NUMTYPES);
+ BLI_assert(sizeof(data->typemap) / sizeof(int) >= CD_NUMTYPES);
for (i=0; i<CD_NUMTYPES; i++) {
data->typemap[i] = -1;