Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-17 12:50:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-17 12:50:56 +0300
commit2f1e34cfcc06a3fa49dc1b7c99e78cecdc509bf9 (patch)
treefb120177e2026413ac46e6ae1660258cfaf33b3f /source/blender/python/bmesh/bmesh_py_types_customdata.c
parent36e82b775933c511bb3f4dac9f3d572bf6fe0672 (diff)
Cleanup: use clamp_* from BLI_math (replace macro)
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_types_customdata.c')
-rw-r--r--source/blender/python/bmesh/bmesh_py_types_customdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types_customdata.c b/source/blender/python/bmesh/bmesh_py_types_customdata.c
index cb95ded4f0d..aee9d6405d0 100644
--- a/source/blender/python/bmesh/bmesh_py_types_customdata.c
+++ b/source/blender/python/bmesh/bmesh_py_types_customdata.c
@@ -1136,7 +1136,7 @@ int BPy_BMLayerItem_SetItem(BPy_BMElem *py_ele, BPy_BMLayerItem *py_layer, PyObj
ret = -1;
}
else {
- *(float *)value = CLAMPIS(tmp_val, 0.0f, 1.0f);
+ *(float *)value = clamp_f(tmp_val, 0.0f, 1.0f);
}
break;
}
@@ -1148,7 +1148,7 @@ int BPy_BMLayerItem_SetItem(BPy_BMElem *py_ele, BPy_BMLayerItem *py_layer, PyObj
ret = -1;
}
else {
- *(float *)value = CLAMPIS(tmp_val, 0.0f, 1.0f);
+ *(float *)value = clamp_f(tmp_val, 0.0f, 1.0f);
}
break;
}