Fix crash of alembic tests after recent depsgraph builder change

Need to make sure node factories are initialized prior to the dependency
graph allocation.

The regression was initially introduced in 5b021dff41

Thanks Brecht for testing!
This commit is contained in:
Sergey Sharybin 2020-08-27 14:50:59 +02:00
parent 1131328aeb
commit e51c721315
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,8 @@ class AlembicExportTest : public testing::Test {
bmain = BKE_main_new();
DEG_register_node_types();
/* TODO(sergey): Pass scene layer somehow? */
ViewLayer *view_layer = (ViewLayer *)scene.view_layers.first;
depsgraph = DEG_graph_new(bmain, &scene, view_layer, DAG_EVAL_RENDER);
@ -45,6 +47,7 @@ class AlembicExportTest : public testing::Test {
{
BKE_main_free(bmain);
DEG_graph_free(depsgraph);
DEG_free_node_types();
deleteArchive();
}