diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-02-28 17:16:42 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-02-28 17:16:42 +0300 |
commit | ea76ec2866d11156b689287f4190dfe4e79314b2 (patch) | |
tree | ee3edf1cd864414279228e6c322f1f417a429ecd /source/blender/blenkernel/intern/customdata.c | |
parent | 0feab1baef730a63a242f7b9914e1e42813b8e54 (diff) |
Cleanup: rename `CustomData_swap` to `CustomData_swap_corners`.
More in line with our other func names handling sub-item data (mainly, tessfaces' UVs and VCol...).
Diffstat (limited to 'source/blender/blenkernel/intern/customdata.c')
-rw-r--r-- | source/blender/blenkernel/intern/customdata.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c index c0ebcfaa757..c120509b769 100644 --- a/source/blender/blenkernel/intern/customdata.c +++ b/source/blender/blenkernel/intern/customdata.c @@ -2333,7 +2333,14 @@ void CustomData_interp(const CustomData *source, CustomData *dest, if (count > SOURCE_BUF_SIZE) MEM_freeN((void *)sources); } -void CustomData_swap(struct CustomData *data, int index, const int *corner_indices) +/** + * Swap data inside each item, for all layers. + * This only applies to item types that may store several sub-item data (e.g. corner data [UVs, VCol, ...] of + * tessellated faces). + * + * \param corner_indices A mapping 'new_index -> old_index' of sub-item data. + */ +void CustomData_swap_corners(struct CustomData *data, int index, const int *corner_indices) { const LayerTypeInfo *typeInfo; int i; |