diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-10-05 17:35:48 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-10-05 17:35:57 +0300 |
commit | 629a1c1639cb82d8cf421f02bd7fd12f5f3415c6 (patch) | |
tree | fb0794c019bd83b43d635f1823c3cf51253bd460 /source | |
parent | ab519b91b2c4f14ac8cd30038e879fffa290e0cc (diff) |
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
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/font.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c index b55635560be..250e6ff6a7b 100644 --- a/source/blender/blenkernel/intern/font.c +++ b/source/blender/blenkernel/intern/font.c @@ -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); |