Fix build of Alembic test.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 30 Apr 2018 08:04:29 +0000 (10:04 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Mon, 30 Apr 2018 08:04:29 +0000 (10:04 +0200)
tests/gtests/alembic/abc_export_test.cc

index cbf4ed43fe821bedc81ffe2b4109e12145ca7586..dab1e3ae0409b9800b5dc70bd867020ce9ce631e 100644 (file)
@@ -16,9 +16,9 @@ extern "C" {
 class TestableAbcExporter : public AbcExporter {
 public:
        TestableAbcExporter(Main *bmain,
-                           Scene *scene, ViewLayer *view_layer, Depsgraph *depsgraph,
+                           Scene *scene, Depsgraph *depsgraph,
                            const char *filename, ExportSettings &settings)
-           : AbcExporter(bmain, scene, view_layer, depsgraph, filename, settings)
+           : AbcExporter(bmain, scene, depsgraph, filename, settings)
        {
        }
 
@@ -72,8 +72,7 @@ protected:
        // Call after setting up the settings.
        void createExporter()
        {
-               ViewLayer *view_layer = (ViewLayer *)scene.view_layers.first;
-               exporter = new TestableAbcExporter(bmain, &scene, view_layer, depsgraph, "somefile.abc", settings);
+               exporter = new TestableAbcExporter(bmain, &scene, depsgraph, "somefile.abc", settings);
        }
 };