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:
authorPablo Dobarro <pablodp606@gmail.com>2020-08-11 03:08:22 +0300
committerPablo Dobarro <pablodp606@gmail.com>2020-08-12 18:49:55 +0300
commit697c4495782887f0c2faa045fa0ab8235664afbb (patch)
treee2606bc2b6bf15ae0142bd30776e92f7ac9633c7 /source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
parent2476b31c710a1d47c7c0857c4303f6955e6374fc (diff)
Cleanup: Use clamp_f instead of CLAMP in sculpt code
Reviewed By: sergey Differential Revision: https://developer.blender.org/D8528
Diffstat (limited to 'source/blender/editors/sculpt_paint/sculpt_filter_mesh.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_filter_mesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
index 5b6b20fb15b..ed9f1c22ec5 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
@@ -261,7 +261,7 @@ static void mesh_filter_task_cb(void *__restrict userdata,
switch (filter_type) {
case MESH_FILTER_SMOOTH:
- CLAMP(fade, -1.0f, 1.0f);
+ fade = clamp_f(fade, -1.0f, 1.0f);
SCULPT_neighbor_coords_average_interior(ss, avg, vd.index);
sub_v3_v3v3(val, avg, orig_co);
madd_v3_v3v3fl(val, orig_co, val, fade);