diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2016-09-16 10:27:44 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2016-09-16 10:27:44 +0300 |
commit | 04bfea0d6747b48cf8e792586cd6df8df0f00dcc (patch) | |
tree | f4426f36cbc17bfe92e2c74b37969604eb3b6e1e /source/blender/alembic/intern/abc_archive.h | |
parent | e156abe467bc0e69ffcf1c298ac1d984762ebc8e (diff) |
Fix T49369: Blender crashes/closes down application at alembic export of
any object
There were a couple of crashes caused by stupid typos in
rB631af9f930d2fd2c76751204ff22239aa95f761d and
rB78ea06fea4a74181c25254ed72d50d8a743b6954, as well as a shamefull lack
of 'testing before committing' which only affect exporting.
One crash was due to using RNA_boolean_get instead of RNA_enum_get, the
other one was a tricky case of order of deletion happening in the
destructors of AbcExporter and ArchiveWriter.
Should not affect RC or release.
Diffstat (limited to 'source/blender/alembic/intern/abc_archive.h')
-rw-r--r-- | source/blender/alembic/intern/abc_archive.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/alembic/intern/abc_archive.h b/source/blender/alembic/intern/abc_archive.h index 68d7a5ca70d..d412574b736 100644 --- a/source/blender/alembic/intern/abc_archive.h +++ b/source/blender/alembic/intern/abc_archive.h @@ -54,13 +54,13 @@ public: }; class ArchiveWriter { - Alembic::Abc::OArchive m_archive; std::ofstream m_outfile; + Alembic::Abc::OArchive m_archive; public: explicit ArchiveWriter(const char *filename, const char *scene, bool do_ogawa, Alembic::Abc::MetaData &md); - Alembic::Abc::OArchive archive(); + Alembic::Abc::OArchive &archive(); }; #endif /* __ABC_ARCHIVE_H__ */ |