diff options
author | Hans Goudey <h.goudey@me.com> | 2022-04-14 03:22:10 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-04-14 03:22:10 +0300 |
commit | 8e4c3c6a2414a3e3b4dd3e2ffe33535be9d09cc7 (patch) | |
tree | 515ab21dd1b55afc7ecfb0b50a8f089981c12c36 /source/blender/blenkernel/intern/vfont.c | |
parent | 0ba061c3bc9bf299c17e064c5fc0f6ae9ac906a1 (diff) |
Cleanup: Make curve deform argument optional
The "dir" argument to `BKE_where_on_path` was only actually
used in a few places. It's easier to see where those are if there
isn't always a dummy argument.
Diffstat (limited to 'source/blender/blenkernel/intern/vfont.c')
-rw-r--r-- | source/blender/blenkernel/intern/vfont.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/vfont.c b/source/blender/blenkernel/intern/vfont.c index 5f751da1ee1..9a6f861eae8 100644 --- a/source/blender/blenkernel/intern/vfont.c +++ b/source/blender/blenkernel/intern/vfont.c @@ -1372,7 +1372,7 @@ static bool vfont_to_curve(Object *ob, ct = chartransdata; for (i = 0; i <= slen; i++, ct++) { - float ctime, dtime, vec[4], tvec[4], rotvec[3]; + float ctime, dtime, vec[4], rotvec[3]; float si, co; /* Rotate around center character. */ @@ -1392,9 +1392,9 @@ static bool vfont_to_curve(Object *ob, CLAMP(ctime, 0.0f, 1.0f); /* Calculate the right loc AND the right rot separately. */ - /* `vec`, `tvec` need 4 items. */ - BKE_where_on_path(cu->textoncurve, ctime, vec, tvec, NULL, NULL, NULL); - BKE_where_on_path(cu->textoncurve, ctime + dtime, tvec, rotvec, NULL, NULL, NULL); + /* `vec` needs 4 items. */ + BKE_where_on_path(cu->textoncurve, ctime, vec, NULL, NULL, NULL, NULL); + BKE_where_on_path(cu->textoncurve, ctime + dtime, NULL, rotvec, NULL, NULL, NULL); mul_v3_fl(vec, sizefac); |