diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-05-24 12:45:14 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-05-24 12:45:14 +0300 |
commit | eafea25c41d29b730e6092d8e3c2165cc236dfa2 (patch) | |
tree | a70aa446eb9d2bfec51a20142e23a88b13d2ef46 /source/blender/alembic/intern/abc_archive.cc | |
parent | d5d9d1fe7d88176551cf399e683190c0ae3adcaf (diff) |
Alembic export: write Blender version to Alembic file
This is written in a custom metadata key, so it isn't shown by utilities
like abcecho or abcls. However, it's still something that's useful to
have available.
Diffstat (limited to 'source/blender/alembic/intern/abc_archive.cc')
-rw-r--r-- | source/blender/alembic/intern/abc_archive.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/alembic/intern/abc_archive.cc b/source/blender/alembic/intern/abc_archive.cc index 194a8224c62..ff14cf15124 100644 --- a/source/blender/alembic/intern/abc_archive.cc +++ b/source/blender/alembic/intern/abc_archive.cc @@ -24,6 +24,8 @@ #include "abc_archive.h" +#include "BKE_blender_version.h" + #ifdef WIN32 # include "utfconv.h" #endif @@ -143,6 +145,7 @@ static OArchive create_archive(std::ostream *ostream, { md.set(Alembic::Abc::kApplicationNameKey, "Blender"); md.set(Alembic::Abc::kUserDescriptionKey, scene_name); + md.set("blender_version", versionstr); time_t raw_time; time(&raw_time); |