[Bf-blender-cvs] [8b876f9] alembic_basic_io: Apply time offset to names of files in a sequence.
Kévin Dietrich
noreply at git.blender.org
Fri Jun 24 22:29:33 CEST 2016
Commit: 8b876f934d324a968624e4517aefb23fe5f5e6dc
Author: Kévin Dietrich
Date: Fri Jun 24 21:32:48 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB8b876f934d324a968624e4517aefb23fe5f5e6dc
Apply time offset to names of files in a sequence.
===================================================================
M source/blender/blenkernel/intern/cachefile.c
===================================================================
diff --git a/source/blender/blenkernel/intern/cachefile.c b/source/blender/blenkernel/intern/cachefile.c
index 621957a..b4d8619 100644
--- a/source/blender/blenkernel/intern/cachefile.c
+++ b/source/blender/blenkernel/intern/cachefile.c
@@ -102,7 +102,9 @@ void BKE_cachefile_update_frame(Main *bmain, float ctime)
continue;
}
- if (BKE_cachefile_filepath_get(cache_file, ctime, filename)) {
+ const float time = BKE_cachefile_time_offset(cache_file, ctime);
+
+ if (BKE_cachefile_filepath_get(cache_file, time, filename)) {
#ifdef WITH_ALEMBIC
ABC_free_handle(cache_file->handle);
cache_file->handle = ABC_create_handle(filename);
More information about the Bf-blender-cvs
mailing list