Alembic: fix T51820 for sequence files not loading properly.

This commit is contained in:
Sybren A. Stüvel 2017-07-03 13:49:16 +02:00
parent 7b12957267
commit 0900914d96
Notes: blender-bot 2023-02-14 06:53:18 +01:00
Referenced by issue #51820, Alembic sequence Crash
1 changed files with 2 additions and 0 deletions

View File

@ -166,10 +166,12 @@ void BKE_cachefile_update_frame(Main *bmain, Scene *scene, const float ctime, co
const float time = BKE_cachefile_time_offset(cache_file, ctime, fps);
if (BKE_cachefile_filepath_get(bmain, cache_file, time, filename)) {
BKE_cachefile_clean(scene, cache_file);
#ifdef WITH_ALEMBIC
ABC_free_handle(cache_file->handle);
cache_file->handle = ABC_create_handle(filename, NULL);
#endif
break;
}
}
}