diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-23 08:20:24 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-23 08:28:48 +0300 |
commit | 77ed4651ee28d9df8620c9d794d84a5893ce26ff (patch) | |
tree | 4a3e75c033019df3295a63e119088f6c9e46ad38 /source/blender/editors/gpencil | |
parent | 0f6d5c9a9d4abd672ecce4812da69564d918b2fc (diff) |
Cleanup: float literals
Diffstat (limited to 'source/blender/editors/gpencil')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_fill.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c index 34f983151d2..775c17e1c98 100644 --- a/source/blender/editors/gpencil/gpencil_fill.c +++ b/source/blender/editors/gpencil/gpencil_fill.c @@ -429,7 +429,7 @@ static void gpencil_create_extensions(tGPDfill *tgpf) float tan2[3]; float d1; float d2; - float total_length = 0.f; + float total_length = 0.0f; for (int i = 1; i < gps->totpoints; i++) { if (i > 1) { copy_v3_v3(tan1, tan2); @@ -448,7 +448,7 @@ static void gpencil_create_extensions(tGPDfill *tgpf) sub_v3_v3v3(curvature, tan2, tan1); float k = normalize_v3(curvature); k /= min_ff(d1, d2); - float radius = 1.f / k; + float radius = 1.0f / k; /* * The smaller the radius of curvature, the sharper the corner. * The thicker the line, the larger the radius of curvature it |