diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-03-04 03:31:51 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-03-04 03:31:51 +0300 |
commit | 38ed95fe8d6f4c47c0c5f09ffecc987d75150dcc (patch) | |
tree | 8884ecd983657941c1375d61fdeb74dd4dabe43a /source/blender/editors/sculpt_paint/paint_utils.c | |
parent | 89b10b8d423a0ee851d9299af279ab93660f15f4 (diff) |
Cleanup: replace CLAMP macros with functions
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_utils.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_utils.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_utils.c b/source/blender/editors/sculpt_paint/paint_utils.c index 37cc543872e..19d890eeac3 100644 --- a/source/blender/editors/sculpt_paint/paint_utils.c +++ b/source/blender/editors/sculpt_paint/paint_utils.c @@ -202,10 +202,7 @@ void paint_get_tex_pixel_col(const MTex *mtex, linearrgb_to_srgb_v3_v3(rgba, rgba); - CLAMP(rgba[0], 0.0f, 1.0f); - CLAMP(rgba[1], 0.0f, 1.0f); - CLAMP(rgba[2], 0.0f, 1.0f); - CLAMP(rgba[3], 0.0f, 1.0f); + clamp_v4(rgba, 0.0f, 1.0f); } void paint_stroke_operator_properties(wmOperatorType *ot) |