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_meshdata.c
parent36e82b775933c511bb3f4dac9f3d572bf6fe0672 (diff)
Cleanup: use clamp_* from BLI_math (replace macro)
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_types_meshdata.c')
-rw-r--r--source/blender/python/bmesh/bmesh_py_types_meshdata.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types_meshdata.c b/source/blender/python/bmesh/bmesh_py_types_meshdata.c
index 7984f625d96..4c44c104037 100644
--- a/source/blender/python/bmesh/bmesh_py_types_meshdata.c
+++ b/source/blender/python/bmesh/bmesh_py_types_meshdata.c
@@ -38,6 +38,7 @@
#include "DNA_meshdata_types.h"
#include "BLI_utildefines.h"
+#include "BLI_math_base.h"
#include "BLI_math_vector.h"
#include "BKE_deform.h"
@@ -555,7 +556,7 @@ static int bpy_bmdeformvert_ass_subscript(BPy_BMDeformVert *self, PyObject *key,
return -1;
}
- dw->weight = CLAMPIS(f, 0.0f, 1.0f);
+ dw->weight = clamp_f(f, 0.0f, 1.0f);
}
}
else {