diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-08-11 03:08:22 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-08-12 18:49:55 +0300 |
commit | 697c4495782887f0c2faa045fa0ab8235664afbb (patch) | |
tree | e2606bc2b6bf15ae0142bd30776e92f7ac9633c7 /source/blender/editors/sculpt_paint/sculpt_filter_mask.c | |
parent | 2476b31c710a1d47c7c0857c4303f6955e6374fc (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.c | 2 |
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; } |