Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-07-24 17:50:47 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-07-24 17:50:47 +0300
commit35d044e40d578a93c7fe5ce78d58eacb03fc7e28 (patch)
tree0442881737a042c19611093353696fe10d8f8e92 /tests
parent34c2628f3246324fdc2cc57fd376e2abf13b2609 (diff)
Fix compilation error of alembic test after recent eval_ctx changes
Diffstat (limited to 'tests')
-rw-r--r--tests/gtests/alembic/CMakeLists.txt1
-rw-r--r--tests/gtests/alembic/abc_export_test.cc10
2 files changed, 9 insertions, 2 deletions
diff --git a/tests/gtests/alembic/CMakeLists.txt b/tests/gtests/alembic/CMakeLists.txt
index fadf549e212..924e7bbb1b6 100644
--- a/tests/gtests/alembic/CMakeLists.txt
+++ b/tests/gtests/alembic/CMakeLists.txt
@@ -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}
diff --git a/tests/gtests/alembic/abc_export_test.cc b/tests/gtests/alembic/abc_export_test.cc
index 63c1d179e51..52ccbc1b93f 100644
--- a/tests/gtests/alembic/abc_export_test.cc
+++ b/tests/gtests/alembic/abc_export_test.cc
@@ -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;
};