rendered paste bodyIndex: source/blender/src/filesel.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/src/filesel.c,v
retrieving revision 1.96
diff -u -r1.96 filesel.c
--- source/blender/src/filesel.c 7 Apr 2007 17:35:47 -0000 1.96
+++ source/blender/src/filesel.c 20 Apr 2007 17:49:48 -0000
@@ -2429,7 +2429,19 @@
if(lib && (sfile->flag & FILE_LINK)==0) {
all_local(lib, 1);
}
-
+
+ if((sfile->flag & FILE_LINK)==0) {
+ /* tag everything, all untagged data can be made local */
+ ID *id;
+ ListBase *lbarray[MAX_LIBARRAY];
+ int a;
+
+ a= set_listbasepointers(G.main, lbarray);
+ while(a--) {
+ for(id= lbarray[a]->first; id; id= id->next) id->flag &= ~LIB_APPEND_TAG;
+ }
+ }
+
DAG_scene_sort(G.scene);
/* in sfile->dir is the whole lib name */