diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-29 14:50:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-29 14:50:55 +0300 |
commit | 964a3f109752e08cf384486c1c70c2d15193e898 (patch) | |
tree | cf9f2d45fff4671ba5dd4a8cd87a0eda751731e1 /source/blender | |
parent | 8683a4ba40831e1436edc889299f062659af6712 (diff) |
Revert "3D Text: avoid checking null character's text on path"
This reverts commit 8a379e3460048906306042145052d5d7f3bb859c.
Caused T58284
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/font.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c index 1c8ebded539..5e5affcb311 100644 --- a/source/blender/blenkernel/intern/font.c +++ b/source/blender/blenkernel/intern/font.c @@ -1225,7 +1225,7 @@ makebreak: timeofs += distfac * cu->xof; /* not cyclic */ ct = chartransdata; - for (i = 0; i < slen; i++, ct++) { + for (i = 0; i <= slen; i++, ct++) { float ctime, dtime, vec[4], tvec[4], rotvec[3]; float si, co; @@ -1267,9 +1267,8 @@ makebreak: sb = &selboxes[i - selstart]; sb->rot = -ct->rot; } + } - /* null character is always zero width, no need to iterate over it */ - chartransdata[slen] = chartransdata[slen - 1]; } } |