diff options
-rw-r--r-- | source/blender/blenkernel/intern/customdata.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/customdata.c b/source/blender/blenkernel/intern/customdata.c index ab57676fde3..d8d9675b42b 100644 --- a/source/blender/blenkernel/intern/customdata.c +++ b/source/blender/blenkernel/intern/customdata.c @@ -2883,18 +2883,18 @@ void CustomData_copy_elements(int type, void *src_data_ofs, void *dst_data_ofs, void CustomData_copy_data_layer(const CustomData *source, CustomData *dest, - int src_i, - int dst_i, + int src_layer_index, + int dst_layer_index, int src_index, int dst_index, int count) { const LayerTypeInfo *typeInfo; - const void *src_data = source->layers[src_i].data; - void *dst_data = dest->layers[dst_i].data; + const void *src_data = source->layers[src_layer_index].data; + void *dst_data = dest->layers[dst_layer_index].data; - typeInfo = layerType_getInfo(source->layers[src_i].type); + typeInfo = layerType_getInfo(source->layers[src_layer_index].type); const size_t src_offset = (size_t)src_index * typeInfo->size; const size_t dst_offset = (size_t)dst_index * typeInfo->size; @@ -2903,7 +2903,7 @@ void CustomData_copy_data_layer(const CustomData *source, if (count && !(src_data == NULL && dst_data == NULL)) { CLOG_WARN(&LOG, "null data for %s type (%p --> %p), skipping", - layerType_getName(source->layers[src_i].type), + layerType_getName(source->layers[src_layer_index].type), (void *)src_data, (void *)dst_data); } |