From 694104f8aae9cc82bd161c7eeee6d394c088782a Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Thu, 23 Nov 2023 21:49:28 +0100 Subject: [PATCH] Fix: Failing bf_io_wavefront_obj_tests test BLF needs to initialized to properly set up Freetype, caching, etc. Pull Request: https://projects.blender.org/blender/blender/pulls/115318 --- .../blender/blenloader/tests/blendfile_loading_base_test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/blenloader/tests/blendfile_loading_base_test.cc b/source/blender/blenloader/tests/blendfile_loading_base_test.cc index fd5c5a5de14..9b7bec40d8f 100644 --- a/source/blender/blenloader/tests/blendfile_loading_base_test.cc +++ b/source/blender/blenloader/tests/blendfile_loading_base_test.cc @@ -20,6 +20,8 @@ #include "BKE_scene.h" #include "BKE_vfont.h" +#include "BLF_api.h" + #include "BLI_path_util.h" #include "BLI_threads.h" @@ -65,6 +67,7 @@ void BlendfileLoadingBaseTest::SetUpTestCase() BKE_node_system_init(); BKE_callback_global_init(); BKE_vfont_builtin_register(datatoc_bfont_pfb, datatoc_bfont_pfb_size); + BLF_init(); G.background = true; G.factory_startup = true; @@ -87,6 +90,7 @@ void BlendfileLoadingBaseTest::TearDownTestCase() BKE_blender_free(); RNA_exit(); + BLF_exit(); DEG_free_node_types(); GHOST_DisposeSystemPaths(); DNA_sdna_current_free();