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/uvedit/uvedit_unwrap_ops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/editors/uvedit/uvedit_unwrap_ops.c') diff --git a/source/blender/editors/uvedit/uvedit_unwrap_ops.c b/source/blender/editors/uvedit/uvedit_unwrap_ops.c index eb568acc0dd..fb48b1377f1 100644 --- a/source/blender/editors/uvedit/uvedit_unwrap_ops.c +++ b/source/blender/editors/uvedit/uvedit_unwrap_ops.c @@ -1497,8 +1497,7 @@ static void uv_map_clip_correct_multi(const Scene *scene, BM_ITER_ELEM (l, &liter, efa, BM_LOOPS_OF_FACE) { luv = BM_ELEM_CD_GET_VOID_P(l, cd_loop_uv_offset); - CLAMP(luv->uv[0], 0.0f, 1.0f); - CLAMP(luv->uv[1], 0.0f, 1.0f); + clamp_v2(luv->uv, 0.0f, 1.0f); } } } -- cgit v1.2.3