From 38ed95fe8d6f4c47c0c5f09ffecc987d75150dcc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 4 Mar 2020 11:31:51 +1100 Subject: Cleanup: replace CLAMP macros with functions --- source/blender/editors/sculpt_paint/paint_utils.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/blender/editors/sculpt_paint/paint_utils.c') 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) -- cgit v1.2.3