diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2019-04-11 16:03:08 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2019-04-11 17:22:55 +0300 |
commit | 0576f4ca9b41f1f0e7dfdd896e539488419306ff (patch) | |
tree | 4349044db3dc7169f7086968b0defdc4a0d3554f /source/blender/alembic/intern/abc_mesh.h | |
parent | 7509d0bbf1f24e0c6ac519f807d4210c9befe94f (diff) |
Fix T62664: Exporting Metaballs as Alembic crashes Blender
The `AbcMetaballWriter` now subclasses `AbcGenericMeshWriter` instead of
wrapping an `AbcMeshWriter`. `AbcGenericMeshWriter` was created for this
purpose (writing non-mesh objects as mesh to Alembic) and performs the work
in a cleaner and, more importantly, not crashing way.
Diffstat (limited to 'source/blender/alembic/intern/abc_mesh.h')
-rw-r--r-- | source/blender/alembic/intern/abc_mesh.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/alembic/intern/abc_mesh.h b/source/blender/alembic/intern/abc_mesh.h index 938c292b686..35ad0f8b297 100644 --- a/source/blender/alembic/intern/abc_mesh.h +++ b/source/blender/alembic/intern/abc_mesh.h @@ -61,6 +61,7 @@ protected: virtual void do_write(); virtual bool isAnimated() const; virtual Mesh *getEvaluatedMesh(Scene *scene_eval, Object *ob_eval, bool &r_needsfree) = 0; + virtual void freeEvaluatedMesh(struct Mesh *mesh); Mesh *getFinalMesh(bool &r_needsfree); |