diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2015-06-02 18:59:47 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-06-02 18:59:47 +0300 |
commit | 3019eff71ea2c178003c21fd8894d13868985cee (patch) | |
tree | 1e42ac1a525da237a0f6095c0efc4a5472c31741 /source/blender/pointcache/PTC_api.cpp | |
parent | 1ae3ffb6c95c6ba4a95e7feba18f7e87580a6c5b (diff) |
Use ID property groups for storing and loading metadata associated to
Alembic archives.
Two separate property groups for metadata are used (so that reading
caches does not overwrite metadata for output caches).
Diffstat (limited to 'source/blender/pointcache/PTC_api.cpp')
-rw-r--r-- | source/blender/pointcache/PTC_api.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/pointcache/PTC_api.cpp b/source/blender/pointcache/PTC_api.cpp index 4aecf557b34..6f4f6da3e63 100644 --- a/source/blender/pointcache/PTC_api.cpp +++ b/source/blender/pointcache/PTC_api.cpp @@ -131,9 +131,9 @@ const char *PTC_get_default_archive_extension(void) } PTCWriterArchive *PTC_open_writer_archive(double fps, float start_frame, const char *path, PTCArchiveResolution resolutions, - const char *app_name, const char *description, const struct tm *time) + const char *app_name, const char *description, const struct tm *time, struct IDProperty *metadata) { - return (PTCWriterArchive *)PTC::Factory::alembic->open_writer_archive(fps, start_frame, path, resolutions, app_name, description, time, NULL); + return (PTCWriterArchive *)PTC::Factory::alembic->open_writer_archive(fps, start_frame, path, resolutions, app_name, description, time, metadata, NULL); } void PTC_close_writer_archive(PTCWriterArchive *_archive) @@ -251,10 +251,10 @@ void PTC_get_archive_info_stream(PTCReaderArchive *_archive, void (*stream)(void archive->get_info_stream(stream, userdata); } -void PTC_get_archive_info(PTCReaderArchive *_archive, struct CacheArchiveInfo *info) +void PTC_get_archive_info(PTCReaderArchive *_archive, struct CacheArchiveInfo *info, IDProperty *metadata) { PTC::ReaderArchive *archive = (PTC::ReaderArchive *)_archive; - archive->get_info(info); + archive->get_info(info, metadata); } void PTC_get_archive_info_nodes(PTCReaderArchive *_archive, struct CacheArchiveInfo *info, bool calc_bytes_size) |