We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a68564c commit fd8ef93Copy full SHA for fd8ef93
source/gameengine/Ketsji/KX_FontObject.cpp
@@ -261,7 +261,7 @@ int GetFontId(VFont *vfont)
261
// convert from absolute to relative
262
char expanded[FILE_MAX];
263
BLI_strncpy(expanded, filepath, FILE_MAX);
264
- BLI_path_abs(expanded, vfont->id.lib->filepath);
+ BLI_path_abs(expanded, vfont->id.lib ? vfont->id.lib->name : KX_GetMainPath().c_str());
265
266
fontid = BLF_load(expanded);
267
0 commit comments