diff options
author | Hans Goudey <h.goudey@me.com> | 2022-09-24 00:30:12 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-09-24 00:30:25 +0300 |
commit | ce63fea080ce3e171375d4c788a503ddca6ab668 (patch) | |
tree | afc95823b80b6631cb174ebf6fad25b98dc3d541 /source/blender/blenkernel | |
parent | 1b5c94630eb78c3a8f8249245dc7e70e23d644b0 (diff) |
Cleanup: Remove unused data transfer function
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/data_transfer.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/source/blender/blenkernel/intern/data_transfer.c b/source/blender/blenkernel/intern/data_transfer.c index f2732cea91a..36f038e68ab 100644 --- a/source/blender/blenkernel/intern/data_transfer.c +++ b/source/blender/blenkernel/intern/data_transfer.c @@ -403,31 +403,6 @@ float data_transfer_interp_float_do(const int mix_mode, return interpf(val_ret, val_dst, mix_factor); } -static void data_transfer_interp_char(const CustomDataTransferLayerMap *laymap, - void *dest, - const void **sources, - const float *weights, - const int count, - const float mix_factor) -{ - const char **data_src = (const char **)sources; - char *data_dst = (char *)dest; - - const int mix_mode = laymap->mix_mode; - float val_src = 0.0f; - const float val_dst = (float)(*data_dst) / 255.0f; - - for (int i = count; i--;) { - val_src += ((float)(*data_src[i]) / 255.0f) * weights[i]; - } - - val_src = data_transfer_interp_float_do(mix_mode, val_dst, val_src, mix_factor); - - CLAMP(val_src, 0.0f, 1.0f); - - *data_dst = (char)(val_src * 255.0f); -} - /* Helpers to match sources and destinations data layers * (also handles 'conversions' in CD_FAKE cases). */ |