forked from bartvdbraak/blender
When a font for 3d Text Object doesnt exist anymore, Blender could crash. Thanks Rob Haarsma for fixing it.
This commit is contained in:
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user