3D Text: avoid checking null character's text on path

Redundant and causes complications when improving text code.
This commit is contained in:
Campbell Barton
2016-04-28 15:56:41 +10:00
parent 42e6477129
commit 8a379e3460

View File

@@ -1040,7 +1040,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;
@@ -1082,8 +1082,9 @@ 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];
}
}