diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-09 13:20:17 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-11-09 13:20:17 +0300 |
commit | d325e6f0e845d710abe4847a57be8e30920911a9 (patch) | |
tree | 13138d409459bbe7e223833a8f6a5000437585e6 /tests | |
parent | c99481b6320a77e4793c812403f7d37dfc2d5ced (diff) |
Depsgraph: Make dependency graph to be built from scene layer
This is a final step of having proper ownership. Now selecting different
layers in the "top bar" will actually do what this is expected to do.
Surely, there are still things to be done under the hood, that will happen
in a less intrusive way.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gtests/alembic/abc_export_test.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/gtests/alembic/abc_export_test.cc b/tests/gtests/alembic/abc_export_test.cc index b5ef1a194e9..2e4d95f6f60 100644 --- a/tests/gtests/alembic/abc_export_test.cc +++ b/tests/gtests/alembic/abc_export_test.cc @@ -16,9 +16,9 @@ extern "C" { class TestableAbcExporter : public AbcExporter { public: TestableAbcExporter(Main *bmain, EvaluationContext *eval_ctx, - Scene *scene, Depsgraph *depsgraph, + Scene *scene, SceneLayer *scene_layer, Depsgraph *depsgraph, const char *filename, ExportSettings &settings) - : AbcExporter(bmain, eval_ctx, scene, depsgraph, filename, settings) + : AbcExporter(bmain, eval_ctx, scene, scene_layer, depsgraph, filename, settings) { } @@ -73,7 +73,8 @@ protected: // Call after setting up the settings. void createExporter() { - exporter = new TestableAbcExporter(bmain, &eval_ctx, &scene, depsgraph, "somefile.abc", settings); + SceneLayer *scene_layer = (SceneLayer *)scene.render_layers.first; + exporter = new TestableAbcExporter(bmain, &eval_ctx, &scene, scene_layer, depsgraph, "somefile.abc", settings); } }; |