diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-07-12 16:20:01 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-07-12 16:20:01 +0300 |
commit | f72cedffb63e08abc71ae1c6d31408457b1005a9 (patch) | |
tree | d9a20ab907274d71dcee0a34a594c945d260f9cf /source/blender/editors/transform/transform_mode_curveshrinkfatten.c | |
parent | 2d1fe736fabdcccdd46edfbdfc68720498c30e10 (diff) |
Cleanup: Use interpf instead of repeating the logic
This makes the code clearer.
Diffstat (limited to 'source/blender/editors/transform/transform_mode_curveshrinkfatten.c')
-rw-r--r-- | source/blender/editors/transform/transform_mode_curveshrinkfatten.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_mode_curveshrinkfatten.c b/source/blender/editors/transform/transform_mode_curveshrinkfatten.c index 7b65417d32b..f7f9e14b8ac 100644 --- a/source/blender/editors/transform/transform_mode_curveshrinkfatten.c +++ b/source/blender/editors/transform/transform_mode_curveshrinkfatten.c @@ -64,7 +64,7 @@ static void applyCurveShrinkFatten(TransInfo *t, const int UNUSED(mval[2])) if (td->val) { *td->val = td->ival * ratio; /* apply PET */ - *td->val = (*td->val * td->factor) + ((1.0f - td->factor) * td->ival); + *td->val = interpf(*td->val, td->ival, td->factor); CLAMP_MIN(*td->val, 0.0f); } } |