Merge branch 'master' into blender2.8
[blender.git] / tests / gtests / alembic / abc_export_test.cc
index a2761513d06fdb6e71491e7ec5fe41264177b611..78622dcf8a04332cd0d84699c81bbb1ef91734bb 100644 (file)
@@ -11,11 +11,16 @@ extern "C" {
 #include "DNA_scene_types.h"
 }
 
+#include "DEG_depsgraph.h"
+
 class TestableAbcExporter : public AbcExporter {
 public:
        TestableAbcExporter(Main *bmain, Scene *scene, const char *filename, ExportSettings &settings)
-           : AbcExporter(bmain, scene, filename, settings)
-       {}
+           : AbcExporter(bmain, &eval_ctx, scene, filename, settings)
+       {
+               /* TODO(sergey): Pass scene layer somehow? */
+               DEG_evaluation_context_init(&eval_ctx, DAG_EVAL_VIEWPORT);
+       }
 
        void getShutterSamples(unsigned int nr_of_samples,
                               bool time_relative,
@@ -29,6 +34,7 @@ public:
                AbcExporter::getFrameSet(nr_of_samples, frames);
        }
 
+       EvaluationContext eval_ctx;
 };
 
 class AlembicExportTest : public testing::Test
@@ -37,6 +43,7 @@ protected:
        ExportSettings settings;
        Scene scene;
        TestableAbcExporter *exporter;
+       EvaluationContext eval_ctx;
 
        virtual void SetUp()
        {