Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Tönne <lukas.toenne@gmail.com>2015-06-02 16:25:13 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-06-02 16:25:13 +0300
commit1ae3ffb6c95c6ba4a95e7feba18f7e87580a6c5b (patch)
tree4d39bc7aab76d350e731f83a81b594c64f1702cd /source/blender/pointcache/PTC_api.cpp
parent33d6e6ed42f3a092355211bc92e84d91d1fcc413 (diff)
Write metadata to caches (application name, date of creation, user
description). Cache library output archives now have a description string next to them that gets written into the archive.
Diffstat (limited to 'source/blender/pointcache/PTC_api.cpp')
-rw-r--r--source/blender/pointcache/PTC_api.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/pointcache/PTC_api.cpp b/source/blender/pointcache/PTC_api.cpp
index e248e9aff38..4aecf557b34 100644
--- a/source/blender/pointcache/PTC_api.cpp
+++ b/source/blender/pointcache/PTC_api.cpp
@@ -51,7 +51,8 @@ using namespace PTC;
class StubFactory : public Factory {
const std::string &get_default_extension() { static std::string ext = ""; return ext; }
- WriterArchive *open_writer_archive(double /*fps*/, float /*start_frame*/, const std::string &/*name*/, PTCArchiveResolution /*resolutions*/, ErrorHandler */*error_handler*/) { return NULL; }
+ WriterArchive *open_writer_archive(double /*fps*/, float /*start_frame*/, const std::string &/*name*/, PTCArchiveResolution /*resolutions*/,
+ const char */*app_name*/, const char */*description*/, const struct tm */*t*/, ErrorHandler */*error_handler*/) { return NULL; }
ReaderArchive *open_reader_archive(double /*fps*/, float /*start_frame*/, const std::string &/*name*/, ErrorHandler * /*error_handler*/) { return NULL; }
void slice(ReaderArchive * /*in*/, WriterArchive * /*out*/, float /*start_frame*/, float /*end_frame*/) {}
Writer *create_writer_object(const std::string &/*name*/, Scene */*scene*/, Object */*ob*/) { return NULL; }
@@ -129,9 +130,10 @@ const char *PTC_get_default_archive_extension(void)
return PTC::Factory::alembic->get_default_extension().c_str();
}
-PTCWriterArchive *PTC_open_writer_archive(double fps, float start_frame, const char *path, PTCArchiveResolution resolutions)
+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)
{
- return (PTCWriterArchive *)PTC::Factory::alembic->open_writer_archive(fps, start_frame, path, resolutions, NULL);
+ return (PTCWriterArchive *)PTC::Factory::alembic->open_writer_archive(fps, start_frame, path, resolutions, app_name, description, time, NULL);
}
void PTC_close_writer_archive(PTCWriterArchive *_archive)