Fix compilation error of alembic test after recent eval_ctx changes
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 24 Jul 2017 14:50:47 +0000 (16:50 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 24 Jul 2017 14:50:47 +0000 (16:50 +0200)
tests/gtests/alembic/CMakeLists.txt
tests/gtests/alembic/abc_export_test.cc

index fadf549e212f040d40fea87b8fafecaf31f22bfa..924e7bbb1b6e8746ae89e58faeda89ed8b3194e5 100644 (file)
@@ -27,6 +27,7 @@ set(INC
        ../../../source/blender/blenlib
        ../../../source/blender/alembic
        ../../../source/blender/makesdna
+       ../../../source/blender/depsgraph
        ${ALEMBIC_INCLUDE_DIRS}
        ${BOOST_INCLUDE_DIR}
        ${HDF5_INCLUDE_DIRS}
index 63c1d179e51ffe2b8046941e61f8d2b15d3dd395..52ccbc1b93f73fc7f7fa499382b3df910f8596db 100644 (file)
@@ -10,11 +10,16 @@ extern "C" {
 #include "DNA_scene_types.h"
 }
 
+#include "DEG_depsgraph.h"
+
 class TestableAbcExporter : public AbcExporter {
 public:
        TestableAbcExporter(Scene *scene, const char *filename, ExportSettings &settings)
-           : AbcExporter(scene, filename, settings)
-       {}
+           : AbcExporter(&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,
@@ -28,6 +33,7 @@ public:
                AbcExporter::getFrameSet(nr_of_samples, frames);
        }
 
+       EvaluationContext eval_ctx;
 };