diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-10-28 20:18:27 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-10-29 17:21:36 +0300 |
commit | 89eb05a8908130f8668e4c677d63f3d2b89e68bb (patch) | |
tree | caff26c9c47fe531c86e0ee03b843c6162fc5581 /tests/gtests/alembic/abc_export_test.cc | |
parent | d9000495e1273052c895c754fd2aa56c9dbe6175 (diff) |
Alembic: exporting MetaBalls as mesh
- Only basis balls are exported, as they represent the resulting mesh.
As a result the mesh is written to Alembic using the name of the basis
ball.
- MetaBalls are converted to a mesh on every frame, then an
AbcMeshWriter is used to write that mesh to Alembic.
Diffstat (limited to 'tests/gtests/alembic/abc_export_test.cc')
-rw-r--r-- | tests/gtests/alembic/abc_export_test.cc | 7 |
1 files changed, 4 insertions, 3 deletions
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); } }; |