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:57:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-17 12:57:49 +0300
commit43ce201125ff97e16a56b372a91442590498dacc (patch)
tree10b6ef3c41cab5b9cef0b93d99de0a14fca4157f /source/blender/python/bmesh/bmesh_py_types_customdata.c
parent75188552a113f4dc226f21076f883ac3c11c9a98 (diff)
parent42103a3eb8e9ee341c89310cc2343bc21b6ae7e2 (diff)
Merge branch 'master' into blender2.8
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 e2241ade7f0..15548714113 100644
--- a/source/blender/python/bmesh/bmesh_py_types_customdata.c
+++ b/source/blender/python/bmesh/bmesh_py_types_customdata.c
@@ -1127,7 +1127,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;
}
@@ -1139,7 +1139,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;
}