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_mask.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_mask.c')
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_filter_mask.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_mask.c b/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
index 83145f5600f..37ffaed6ec7 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_mask.c
@@ -175,7 +175,7 @@ static void mask_filter_task_cb(void *__restrict userdata,
*vd.mask = gain * (*vd.mask) + offset;
break;
}
- CLAMP(*vd.mask, 0.0f, 1.0f);
+ *vd.mask = clamp_f(*vd.mask, 0.0f, 1.0f);
if (*vd.mask != prev_val) {
update = true;
}