When a font for 3d Text Object doesnt exist anymore, Blender could crash.
Thanks Rob Haarsma for fixing it.
This commit is contained in:
Ton Roosendaal 2004-12-03 14:30:32 +00:00
parent 81702927a8
commit 1411f7ed59

@ -141,6 +141,12 @@ static VFontData *vfont_get_data(VFont *vfont)
} else {
pf= newPackedFile(vfont->name);
}
if(!pf) {
printf("Font file doesn't exist: %s\n", vfont->name);
strcpy(vfont->name, "<builtin>");
pf= get_builtin_packedfile();
}
}
if (pf) {