Depsgraph: Pass bmain to depsgraph object creation
Currently unused, but will allow to keep of an owner of the depsgraph. Could also simplify other APIs in the future by avoiding to pass bmain explicitly to relation update functions and things like that.
This commit is contained in:
@@ -54,7 +54,7 @@ class AlembicExportTest : public testing::Test {
|
||||
|
||||
/* TODO(sergey): Pass scene layer somehow? */
|
||||
ViewLayer *view_layer = (ViewLayer *)scene.view_layers.first;
|
||||
settings.depsgraph = depsgraph = DEG_graph_new(&scene, view_layer, DAG_EVAL_VIEWPORT);
|
||||
settings.depsgraph = depsgraph = DEG_graph_new(bmain, &scene, view_layer, DAG_EVAL_VIEWPORT);
|
||||
|
||||
settings.scene = &scene;
|
||||
settings.view_layer = view_layer;
|
||||
|
Reference in New Issue
Block a user