Fix T70418: Text Underline stays Flat on TextCurve Extrude
authormano-wii <germano.costa@ig.com.br>
Sat, 5 Oct 2019 14:35:48 +0000 (11:35 -0300)
committermano-wii <germano.costa@ig.com.br>
Sat, 5 Oct 2019 14:35:57 +0000 (11:35 -0300)
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

source/blender/blenkernel/intern/font.c

index b55635560be1930c0095750eacaad632b36e733c..250e6ff6a7bdc68f3891f5117f62f418c64d32f8 100644 (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);