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/uvedit/uvedit_unwrap_ops.c | |
parent | 89b10b8d423a0ee851d9299af279ab93660f15f4 (diff) |
Cleanup: replace CLAMP macros with functions
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_unwrap_ops.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_unwrap_ops.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } } } |