Text3d: smallcaps wasnt working properly for text-on-path
authorCampbell Barton <ideasman42@gmail.com>
Sun, 5 Jan 2014 09:50:15 +0000 (20:50 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 5 Jan 2014 10:15:25 +0000 (21:15 +1100)
source/blender/blenkernel/intern/font.c

index 59061c28f57840d6a120d763b6df082ac5c4c780..d0656b0824c807efc1a83f56d82c31149098b929 100644 (file)
@@ -587,7 +587,7 @@ bool BKE_vfont_to_curve(Main *bmain, Scene *scene, Object *ob, int mode,
        for (i = 0; i <= slen; i++) {
 makebreak:
                /* Characters in the list */
-               info = &(custrinfo[i]);
+               info = &custrinfo[i];
                ascii = mem[i];
                if (info->flag & CU_CHINFO_SMALLCAPS) {
                        ascii = towupper(ascii);
@@ -893,6 +893,7 @@ makebreak:
                                float si, co;
                                
                                /* rotate around center character */
+                               info = &custrinfo[i];
                                ascii = mem[i];
 
                                che = find_vfont_char(vfd, ascii);