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
Notes: blender-bot 2023-02-14 04:53:04 +01:00
Referenced by commit e37b9b5d0d, Revert "3D Text: avoid checking null character's text on path"
Referenced by commit 964a3f1097, Revert "3D Text: avoid checking null character's text on path"
Referenced by issue #58284, Cursor position wrong when edit text on curve
1 changed files with 3 additions and 2 deletions

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];
}
}