[Bf-blender-cvs] [267d37c] gooseberry: 'expand' function for cache libraries, so link/append makes it load the group and objects too.
Lukas Tönne
noreply at git.blender.org
Mon Mar 23 13:01:32 CET 2015
Commit: 267d37ce51f53abe323b08334a8ac65eee6a752e
Author: Lukas Tönne
Date: Wed Feb 25 17:17:05 2015 +0100
Branches: gooseberry
https://developer.blender.org/rB267d37ce51f53abe323b08334a8ac65eee6a752e
'expand' function for cache libraries, so link/append makes it load the
group and objects too.
===================================================================
M source/blender/blenloader/intern/readfile.c
===================================================================
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 4f800b7..442b2b7 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -9022,6 +9022,17 @@ static void expand_gpencil(FileData *fd, Main *mainvar, bGPdata *gpd)
expand_animdata(fd, mainvar, gpd->adt);
}
+static void expand_cache_library(FileData *fd, Main *mainvar, CacheLibrary *cachelib)
+{
+ CacheItem *item;
+
+ expand_doit(fd, mainvar, cachelib->group);
+
+ for (item = cachelib->items.first; item; item = item->next) {
+ expand_doit(fd, mainvar, item->ob);
+ }
+}
+
void BLO_main_expander(void (*expand_doit_func)(void *, Main *, void *))
{
expand_doit = expand_doit_func;
@@ -9119,6 +9130,9 @@ void BLO_expand_main(void *fdhandle, Main *mainvar)
case ID_GD:
expand_gpencil(fd, mainvar, (bGPdata *)id);
break;
+ case ID_CL:
+ expand_cache_library(fd, mainvar, (CacheLibrary *)id);
+ break;
}
do_it = true;
More information about the Bf-blender-cvs
mailing list