diff options
author | Ton Roosendaal <ton@blender.org> | 2009-08-12 17:07:12 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2009-08-12 17:07:12 +0400 |
commit | fcf883ecf9b90ca859c3fe692dffe4eb37e5e75d (patch) | |
tree | 7598231ca9f7a1571b7908a72f782f315790dd14 /source/blender | |
parent | 020ee171b793abf998f7d8c66dc524a5a70c5bac (diff) |
2.5
Removed BKE_ptcache_ids_from_object() from readfile.c do_versions,
this cannot work... IDs are not set for versioning. Will need to go
over this with janne what he actually wants to achieve here...
This solves crash on startup of Blender. Tsk!
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index c937dfd88a4..3b53e5b32cb 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -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); |