diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-11-14 08:10:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-11-14 08:10:48 +0300 |
commit | 40ad1cf0b1203848508cf6389e4337eb5071edf6 (patch) | |
tree | bd46e49b9e8f9b25b414828cd1de540ddea177e7 /source/blender/blenlib/intern/math_color_inline.c | |
parent | 212a8d9e5ae78a30ed4c35161d91eeca35eaa41f (diff) |
BLI: sync changes from 2.8
Diffstat (limited to 'source/blender/blenlib/intern/math_color_inline.c')
-rw-r--r-- | source/blender/blenlib/intern/math_color_inline.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_color_inline.c b/source/blender/blenlib/intern/math_color_inline.c index 01a805a09b6..bc3a1ee3e90 100644 --- a/source/blender/blenlib/intern/math_color_inline.c +++ b/source/blender/blenlib/intern/math_color_inline.c @@ -239,6 +239,14 @@ MINLINE void rgba_char_args_set(char col[4], const char r, const char g, const c col[3] = a; } +MINLINE void rgba_float_args_set(float col[4], const float r, const float g, const float b, const float a) +{ + col[0] = r; + col[1] = g; + col[2] = b; + col[3] = a; +} + MINLINE void rgba_char_args_test_set(char col[4], const char r, const char g, const char b, const char a) { if (col[3] == 0) { |