Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2010-01-11 08:10:57 +0300
committerMatt Ebb <matt@mke3.net>2010-01-11 08:10:57 +0300
commite0dd3fe5872ba37ff188e292b80b46fcf8df413c (patch)
treee19ba24ad589b30160a663e26a6ac00068c5a4f2 /source/blender/blenkernel
parent9d67c720d5328f1918cc01d86a326c0aca3e0d06 (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')
-rw-r--r--source/blender/blenkernel/intern/font.c6
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