diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2016-08-25 06:19:41 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2016-08-25 06:19:41 +0300 |
commit | 3c533be77ea8f6c88b188eb870bb46ba972d1372 (patch) | |
tree | 0cb7f2906d678e9f478ff16967afadda2ca21fcb /source/blender/alembic/intern/abc_exporter.h | |
parent | bfc5a94292bb6044e6f95d56d896ad2231e685e7 (diff) |
Fix T49112: Alembic unicode path issues on Windows.
Now we pass streams to Alembic instead of passing the filename string.
That way we can open the stream ourselves with the proper unicode
encoding.
Note that this only applies to Ogawa archive, as HDF5 does not support
streams.
Differential Revision: https://developer.blender.org/D2160
Diffstat (limited to 'source/blender/alembic/intern/abc_exporter.h')
-rw-r--r-- | source/blender/alembic/intern/abc_exporter.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/alembic/intern/abc_exporter.h b/source/blender/alembic/intern/abc_exporter.h index 070eb9ea81a..6c242f973c4 100644 --- a/source/blender/alembic/intern/abc_exporter.h +++ b/source/blender/alembic/intern/abc_exporter.h @@ -24,6 +24,7 @@ #define __ABC_EXPORTER_H__ #include <Alembic/Abc/All.h> +#include <fstream> #include <map> #include <set> #include <vector> @@ -75,6 +76,7 @@ class AbcExporter { const char *m_filename; + std::ofstream m_out_file; Alembic::Abc::OArchive m_archive; unsigned int m_trans_sampling_index, m_shape_sampling_index; |