Fix T70418: Text Underline stays Flat on TextCurve Extrude

Underline was implemented in rBa07394ef2cfd.
It seems that the extrude feature never worked.

Ref T70418

Reviewed By: mont29

Maniphest Tasks: T70418

Differential Revision: https://developer.blender.org/D5972
This commit is contained in:
Germano Cavalcante 2019-10-05 11:35:48 -03:00
parent ab519b91b2
commit 629a1c1639
Notes: blender-bot 2023-02-14 08:49:53 +01:00
Referenced by issue #70783, Unconsistencies with Underline of text
Referenced by issue #70418, Text Underline stays Flat on TextCurve Extrude
1 changed files with 3 additions and 0 deletions

View File

@ -397,6 +397,9 @@ static void build_underline(Curve *cu,
copy_v4_fl4(bp[2].vec, rect->xmax, (rect->ymin + yofs), 0.0f, 1.0f);
copy_v4_fl4(bp[3].vec, rect->xmin, (rect->ymin + yofs), 0.0f, 1.0f);
/* Used by curve extrusion. */
bp[0].radius = bp[1].radius = bp[2].radius = bp[3].radius = 1.0f;
nu2->bp = bp;
BLI_addtail(nubase, nu2);