From 9db14ce9b357ee7913e5665e0db528df42ce8e69 Mon Sep 17 00:00:00 2001 From: Alexander Ewering Date: Sun, 18 Sep 2005 23:44:30 +0000 Subject: [PATCH] Disabling underlining for text objects with "TextOnCurve", because it can never work correctly with it, the way it is currently implemented. The selection won't draw correctly either with TextOnCurve, and this is really asking a bit much.. What to do... --- source/blender/blenkernel/intern/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c index cbc4bd8e061..37e15de9590 100644 --- a/source/blender/blenkernel/intern/font.c +++ b/source/blender/blenkernel/intern/font.c @@ -1098,7 +1098,7 @@ struct chartrans *text_to_curve(Object *ob, int mode) // We do not want to see any character for \n or \r if(cha != '\n' && cha != '\r') buildchar(cu, cha, info, ct->xof, ct->yof, ct->rot, i); - if ((info->flag & CU_UNDERLINE) && (cha != '\n') && (cha != '\r')) { + if ((info->flag & CU_UNDERLINE) && (cu->textoncurve == NULL) && (cha != '\n') && (cha != '\r')) { uloverlap = 0; if ( (i<(slen-1)) && (mem[i+1] != '\n') && (mem[i+1] != '\r') && ((mem[i+1] != ' ') || (cu->strinfo[i+1].flag & CU_UNDERLINE)) && ((cu->strinfo[i+1].flag & CU_WRAP)==0)