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.
This commit is contained in:
Sybren A. Stüvel
2017-05-24 11:45:14 +02:00
parent d5d9d1fe7d
commit eafea25c41

View File

@@ -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);