diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-12-21 13:12:47 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-12-21 13:12:47 +0300 |
commit | fac42e3fa1bfcaedc52e3c1eb5195c8572f0c5f8 (patch) | |
tree | c700e017a41333f0dbbce17e82a79ea0a1401ed7 /source/blender/blenloader | |
parent | 68f1b2c6719ad1bbe52ec4896cecf3b94ad74146 (diff) |
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).
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/tests/blendfile_loading_base_test.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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; |