diff options
author | Matt Ebb <matt@mke3.net> | 2010-01-11 08:10:57 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-01-11 08:10:57 +0300 |
commit | e0dd3fe5872ba37ff188e292b80b46fcf8df413c (patch) | |
tree | e19ba24ad589b30160a663e26a6ac00068c5a4f2 /source/blender/blenkernel/intern/font.c | |
parent | 9d67c720d5328f1918cc01d86a326c0aca3e0d06 (diff) |
* Restored font selection functionality with open font and unlink font operators,
so you can change the font of 3D text objects.
Diffstat (limited to 'source/blender/blenkernel/intern/font.c')
-rw-r--r-- | source/blender/blenkernel/intern/font.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c index 1a63f97e310..41e5178d6cb 100644 --- a/source/blender/blenkernel/intern/font.c +++ b/source/blender/blenkernel/intern/font.c @@ -398,7 +398,11 @@ VFont *load_vfont(char *name) if (vfd) { vfont = alloc_libblock(&G.main->vfont, ID_VF, filename); vfont->data = vfd; - + + /* if there's a font name, use it for the ID name */ + if (strcmp(vfd->name, "")!=0) { + BLI_strncpy(vfont->id.name+2, vfd->name, 21); + } BLI_strncpy(vfont->name, name, sizeof(vfont->name)); // if autopack is on store the packedfile in de font structure |