From fac42e3fa1bfcaedc52e3c1eb5195c8572f0c5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 21 Dec 2021 11:12:47 +0100 Subject: Tests: initialise BKE callbacks before loading blend file Initialise the BKE callback system in `BlendfileLoadingBaseTest::SetUpTestCase()`. This allows certain tests to run in debug mode (when `BLI_assert` is enabled). --- source/blender/blenloader/tests/blendfile_loading_base_test.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/blenloader') diff --git a/source/blender/blenloader/tests/blendfile_loading_base_test.cc b/source/blender/blenloader/tests/blendfile_loading_base_test.cc index a4a5ced070d..32d288f35e1 100644 --- a/source/blender/blenloader/tests/blendfile_loading_base_test.cc +++ b/source/blender/blenloader/tests/blendfile_loading_base_test.cc @@ -21,6 +21,7 @@ #include "BKE_appdir.h" #include "BKE_blender.h" +#include "BKE_callbacks.h" #include "BKE_context.h" #include "BKE_global.h" #include "BKE_idtype.h" @@ -71,6 +72,7 @@ void BlendfileLoadingBaseTest::SetUpTestCase() DEG_register_node_types(); RNA_init(); BKE_node_system_init(); + BKE_callback_global_init(); G.background = true; G.factory_startup = true; -- cgit v1.2.3