diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2015-04-21 14:35:25 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-04-21 14:35:25 +0300 |
commit | af12668c28dab3a36bacc02db24587235691694d (patch) | |
tree | 751c5919732a4abc11fcb633119329e2ee0ca14f /source/blender/pointcache/PTC_api.cpp | |
parent | 6caba7bba2e44a3020242ab3165274edf779b6dd (diff) |
Improved Alembic archive examination tool for cache libraries.
A new panel is added for showing the structure and contents of archives
of a cache library (instead of simply dumping on the terminal). The
archive structure is stored in a lightweight tree structure, mirroring
the hierarchy of objects and properties in Alembic. These
object/property nodes can be expanded individually for easier navigation
through the archive.
Diffstat (limited to 'source/blender/pointcache/PTC_api.cpp')
-rw-r--r-- | source/blender/pointcache/PTC_api.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/pointcache/PTC_api.cpp b/source/blender/pointcache/PTC_api.cpp index cf4e651f690..437b1dea0b6 100644 --- a/source/blender/pointcache/PTC_api.cpp +++ b/source/blender/pointcache/PTC_api.cpp @@ -235,10 +235,16 @@ PTCReadSampleResult PTC_test_sample(PTCReader *_reader, float frame) return reader->test_sample(frame); } -void PTC_get_archive_info(PTCReaderArchive *_archive, void (*stream)(void *, const char *), void *userdata) +void PTC_get_archive_info_stream(PTCReaderArchive *_archive, void (*stream)(void *, const char *), void *userdata) { PTC::ReaderArchive *archive = (PTC::ReaderArchive *)_archive; - archive->get_info(stream, userdata); + archive->get_info_stream(stream, userdata); +} + +void PTC_get_archive_info_nodes(PTCReaderArchive *_archive, struct CacheArchiveInfo *info) +{ + PTC::ReaderArchive *archive = (PTC::ReaderArchive *)_archive; + archive->get_info_nodes(info); } |