2.5
[blender.git] / source / blender / blenloader / intern / readfile.c
index c937dfd88a4e9fb52e60a6757db315e274b22864..3b53e5b32cb20c329a62969fc06258e7cd4f9205 100644 (file)
@@ -9344,12 +9344,12 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                /* set old pointcaches to have disk cache flag */
                for(ob = main->object.first; ob; ob= ob->id.next) {
 
-                       BKE_ptcache_ids_from_object(&pidlist, ob);
+                       //BKE_ptcache_ids_from_object(&pidlist, ob);
 
-                       for(pid=pidlist.first; pid; pid=pid->next)
-                               pid->cache->flag |= PTCACHE_DISK_CACHE;
+                       //for(pid=pidlist.first; pid; pid=pid->next)
+                       //      pid->cache->flag |= PTCACHE_DISK_CACHE;
 
-                       BLI_freelistN(&pidlist);
+                       //BLI_freelistN(&pidlist);
                }
        }
 
@@ -9370,14 +9370,14 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                int i, a;
 
                for(ob = main->object.first; ob; ob = ob->id.next) {
-                       BKE_ptcache_ids_from_object(&pidlist, ob);
+                       //BKE_ptcache_ids_from_object(&pidlist, ob);
 
-                       for(pid=pidlist.first; pid; pid=pid->next) {
-                               if(pid->ptcaches->first == NULL)
-                                       pid->ptcaches->first = pid->ptcaches->last = pid->cache;
-                       }
+                       //for(pid=pidlist.first; pid; pid=pid->next) {
+                       //      if(pid->ptcaches->first == NULL)
+                       //              pid->ptcaches->first = pid->ptcaches->last = pid->cache;
+                       //}
 
-                       BLI_freelistN(&pidlist);
+                       //BLI_freelistN(&pidlist);
 
                        if(ob->type == OB_MESH) {
                                Mesh *me = newlibadr(fd, lib, ob->data);