[Bf-blender-cvs] [d0a9f20] alembic_pointcache: Make sure cache item pointers are lib-linked correctly.

Lukas Tönne noreply at git.blender.org
Tue Feb 24 12:11:00 CET 2015


Commit: d0a9f202571a034ed0d59a809c88e810dfe6ee19
Author: Lukas Tönne
Date:   Tue Feb 24 11:47:26 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rBd0a9f202571a034ed0d59a809c88e810dfe6ee19

Make sure cache item pointers are lib-linked correctly.

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

M	source/blender/blenloader/intern/readfile.c

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

diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index b0d951a..73b2351 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -1940,11 +1940,17 @@ static void direct_link_script(FileData *UNUSED(fd), Script *script)
 static void lib_link_cache_library(FileData *fd, Main *main)
 {
 	CacheLibrary *cachelib;
+	CacheItem *item;
+	
 	for (cachelib = main->cache_library.first; cachelib; cachelib = cachelib->id.next) {
 		if (cachelib->id.flag & LIB_NEED_LINK) {
 			cachelib->id.flag -= LIB_NEED_LINK;
 			
 			cachelib->group = newlibadr_us(fd, cachelib->id.lib, cachelib->group);
+			
+			for (item = cachelib->items.first; item; item = item->next) {
+				item->ob = newlibadr(fd, cachelib->id.lib, item->ob);
+			}
 		}
 	}
 }




More information about the Bf-blender-cvs mailing list