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
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gtests')
-rw-r--r--tests/gtests/alembic/CMakeLists.txt1
-rw-r--r--tests/gtests/alembic/abc_export_test.cc7
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/gtests/alembic/CMakeLists.txt b/tests/gtests/alembic/CMakeLists.txt
index fadf549e212..1511024ee51 100644
--- a/tests/gtests/alembic/CMakeLists.txt
+++ b/tests/gtests/alembic/CMakeLists.txt
@@ -25,6 +25,7 @@ set(INC
.
..
../../../source/blender/blenlib
+ ../../../source/blender/blenkernel
../../../source/blender/alembic
../../../source/blender/makesdna
${ALEMBIC_INCLUDE_DIRS}
diff --git a/tests/gtests/alembic/abc_export_test.cc b/tests/gtests/alembic/abc_export_test.cc
index 9f10a1959ce..a2761513d06 100644
--- a/tests/gtests/alembic/abc_export_test.cc
+++ b/tests/gtests/alembic/abc_export_test.cc
@@ -5,6 +5,7 @@
#include "intern/abc_exporter.h"
extern "C" {
+#include "BKE_global.h"
#include "BLI_utildefines.h"
#include "BLI_math.h"
#include "DNA_scene_types.h"
@@ -12,8 +13,8 @@ extern "C" {
class TestableAbcExporter : public AbcExporter {
public:
- TestableAbcExporter(Scene *scene, const char *filename, ExportSettings &settings)
- : AbcExporter(scene, filename, settings)
+ TestableAbcExporter(Main *bmain, Scene *scene, const char *filename, ExportSettings &settings)
+ : AbcExporter(bmain, scene, filename, settings)
{}
void getShutterSamples(unsigned int nr_of_samples,
@@ -57,7 +58,7 @@ protected:
// Call after setting up the settings.
void createExporter()
{
- exporter = new TestableAbcExporter(&scene, "somefile.abc", settings);
+ exporter = new TestableAbcExporter(G.main, &scene, "somefile.abc", settings);
}
};