[Bf-blender-cvs] [0900914d964] master: Alembic: fix T51820 for sequence files not loading properly.

Sybren A. Stüvel noreply at git.blender.org
Mon Jul 3 16:09:28 CEST 2017


Commit: 0900914d96441a05a8b6411eff3b85e3eae578f8
Author: Sybren A. Stüvel
Date:   Mon Jul 3 13:49:16 2017 +0200
Branches: master
https://developer.blender.org/rB0900914d96441a05a8b6411eff3b85e3eae578f8

Alembic: fix T51820 for sequence files not loading properly.

===================================================================

M	source/blender/blenkernel/intern/cachefile.c

===================================================================

diff --git a/source/blender/blenkernel/intern/cachefile.c b/source/blender/blenkernel/intern/cachefile.c
index 17d482a5d1b..cf619a32783 100644
--- a/source/blender/blenkernel/intern/cachefile.c
+++ b/source/blender/blenkernel/intern/cachefile.c
@@ -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;
 		}
 	}
 }




More information about the Bf-blender-cvs mailing list