diff options
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; |