Revert "3D Text: avoid checking null character's text on path"
authorCampbell Barton <ideasman42@gmail.com>
Tue, 29 Jan 2019 11:50:55 +0000 (22:50 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 29 Jan 2019 11:54:35 +0000 (22:54 +1100)
This reverts commit 8a379e3460048906306042145052d5d7f3bb859c.

Caused T58284

source/blender/blenkernel/intern/font.c

index 6c716e5..210812d 100644 (file)
@@ -1130,7 +1130,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;
 
@@ -1172,9 +1172,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];
                }
        }