diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-02-23 22:36:33 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-02-23 22:36:33 +0300 |
commit | 225f68c324a3417fa3afb745c0e0f7e404737634 (patch) | |
tree | e32be7a23955fac66a062dbf6fedcf5ccb5def10 /source/blender/blenlib/intern/math_vector.c | |
parent | 2081fd1d7de40f7b3e1a529f5b450ed508fe9257 (diff) |
Fix interpolation functions ignoring number of components when doing early output
Diffstat (limited to 'source/blender/blenlib/intern/math_vector.c')
-rw-r--r-- | source/blender/blenlib/intern/math_vector.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_vector.c b/source/blender/blenlib/intern/math_vector.c index d065fa7e5a7..1658c4ffc39 100644 --- a/source/blender/blenlib/intern/math_vector.c +++ b/source/blender/blenlib/intern/math_vector.c @@ -1040,6 +1040,15 @@ void fill_vn_ushort(unsigned short *array_tar, const int size, const unsigned sh } } +void fill_vn_uchar(unsigned char *array_tar, const int size, const unsigned char val) +{ + unsigned char *tar = array_tar + (size - 1); + int i = size; + while (i--) { + *(tar--) = val; + } +} + void fill_vn_fl(float *array_tar, const int size, const float val) { float *tar = array_tar + (size - 1); |