Commit: 48c1a8a1d1306544b1ac3ffc4e5c95c4a7b045c3
Author: Lukas Tönne
Date:   Wed Feb 25 17:17:05 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rB48c1a8a1d1306544b1ac3ffc4e5c95c4a7b045c3

'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 73b2351..88408b5 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -8929,6 +8929,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;
@@ -9026,6 +9037,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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to