svn merge https://svn.blender.org/svnroot/bf-blender/trunk/blender -r22205:22290
[blender.git] / source / blender / blenkernel / intern / library.c
index 90ab4e0..ff065fd 100644 (file)
@@ -1030,6 +1030,20 @@ static void lib_indirect_test_id(ID *id)
        }
 }
 
+void tag_main(struct Main *mainvar, int tag)
+{
+       ListBase *lbarray[MAX_LIBARRAY];
+       ID *id;
+       int a;
+
+       a= set_listbasepointers(mainvar, lbarray);
+       while(a--) {
+               for(id= lbarray[a]->first; id; id= id->next) {
+                       if(tag) id->flag |= LIB_DOIT;
+                       else    id->flag &= ~LIB_DOIT;
+               }
+       }
+}
 
 /* if lib!=NULL, only all from lib local */
 void all_local(Library *lib, int untagged_only)