Bug fix: pre 2.5 particles that were using old memory caching didn't load properly
* Now the old cache is just freed so that new calculations can be done. * The particle dynamics regression test files should display correctly now.
This commit is contained in:
parent
f4598728c4
commit
3dc1c14a13
@ -8867,9 +8867,13 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
|
||||
ob->soft->pointcache= BKE_ptcache_add(&ob->soft->ptcaches);
|
||||
|
||||
for(psys=ob->particlesystem.first; psys; psys=psys->next) {
|
||||
//if(psys->soft && !psys->soft->pointcache)
|
||||
// psys->soft->pointcache= BKE_ptcache_add(&psys->soft->ptcaches);
|
||||
if(!psys->pointcache)
|
||||
if(psys->pointcache) {
|
||||
if(psys->pointcache->flag & PTCACHE_BAKED && (psys->pointcache->flag & PTCACHE_DISK_CACHE)==0) {
|
||||
printf("Old memory cache isn't supported for particles, so re-bake the simulation!\n");
|
||||
psys->pointcache->flag &= ~PTCACHE_BAKED;
|
||||
}
|
||||
}
|
||||
else
|
||||
psys->pointcache= BKE_ptcache_add(&psys->ptcaches);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user