diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-06-13 20:23:32 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-06-13 20:32:38 +0400 |
commit | b96172cb054ce22407f8cfeb16592ecc8e216d6e (patch) | |
tree | 35f498c03c0b2f1ee6f680bf2a10ffc2108a4683 /source/blender/blenkernel | |
parent | 5861e528d64906325632a490b1682f696abd3ebc (diff) |
UI: Add back ability to select a custom interface font
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/blender.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/blender.c b/source/blender/blenkernel/intern/blender.c index 8b87f5b0cea..38a180f85bc 100644 --- a/source/blender/blenkernel/intern/blender.c +++ b/source/blender/blenkernel/intern/blender.c @@ -384,6 +384,7 @@ void BKE_userdef_free(void) wmKeyMapItem *kmi; wmKeyMapDiffItem *kmdi; bAddon *addon, *addon_next; + uiFont *font; for (km = U.user_keymaps.first; km; km = km->next) { for (kmdi = km->diff_items.first; kmdi; kmdi = kmdi->next) { @@ -413,6 +414,12 @@ void BKE_userdef_free(void) MEM_freeN(addon); } + for (font = U.uifonts.first; font; font = font->next) { + BLF_unload_id(font->blf_id); + } + + BLF_default_set(-1); + BLI_freelistN(&U.autoexec_paths); BLI_freelistN(&U.uistyles); |