diff options
Diffstat (limited to 'source/blender/blenkernel/BKE_customdata.h')
-rw-r--r-- | source/blender/blenkernel/BKE_customdata.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_customdata.h b/source/blender/blenkernel/BKE_customdata.h index 23bc7ddd6fd..0be8e760cae 100644 --- a/source/blender/blenkernel/BKE_customdata.h +++ b/source/blender/blenkernel/BKE_customdata.h @@ -82,6 +82,7 @@ void customData_mask_layers__print(CustomDataMask mask); typedef void (*cd_interp)(const void **sources, const float *weights, const float *sub_weights, int count, void *dest); typedef void (*cd_copy)(const void *source, void *dest, int count); +typedef bool (*cd_validate)(void *item, const uint totitems, const bool do_fixes); /** * Checks if the layer at physical offset \a layer_n (in data->layers) support math @@ -399,6 +400,9 @@ void CustomData_bmesh_init_pool(struct CustomData *data, int totelem, const char bool CustomData_from_bmeshpoly_test(CustomData *fdata, CustomData *ldata, bool fallback); #endif +/* Layer data validation. */ +bool CustomData_layer_validate(struct CustomDataLayer *layer, const uint totitems, const bool do_fixes); + /* External file storage */ void CustomData_external_add(struct CustomData *data, |