diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2021-04-28 18:10:51 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2021-04-28 18:10:51 +0300 |
commit | 4273ec04be5c4fcf5f9530cc01826c7566539781 (patch) | |
tree | 8a9f4d216f32f9a3e880be2a817b80dc32ae9ba7 /source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c | |
parent | f8f7c0ca6db87e5f2613896156e595d2bea5fdde (diff) |
Cleanup: Add float format
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c index ee53fe2f168..512e3af063a 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilthick.c @@ -131,7 +131,7 @@ static void deformStroke(GpencilModifierData *md, float curvef = 1.0f; - float factor_depth = 1; + float factor_depth = 1.0f; if (mmd->flag & GP_THICK_FADING) { if (mmd->object) { @@ -143,13 +143,13 @@ static void deformStroke(GpencilModifierData *md, /* Better with ratiof() function from line art. */ if (dist > fading_max) { - factor_depth = 0; + factor_depth = 0.0f; } else if (dist <= fading_max && dist > fading_min) { factor_depth = (fading_max - dist) / (fading_max - fading_min); } else { - factor_depth = 1; + factor_depth = 1.0f; } } } |