diff options
author | Janne Karhu <jhkarh@gmail.com> | 2011-01-07 20:27:27 +0300 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2011-01-07 20:27:27 +0300 |
commit | a601fd889331c319803daa7505c2c8016f15a47f (patch) | |
tree | 3b6bf756a2558c578943fc135bbf254794557456 /source/blender/blenloader | |
parent | b9fe5399e83c71ffce44f766b4c8bce92e40bc46 (diff) |
Bug fix: unbaked particle cache was cleared from current frame onwards on file load.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 7aca496d9ab..38476b0bcc2 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -3927,9 +3927,10 @@ static void direct_link_modifiers(FileData *fd, ListBase *lb) } else if (md->type==eModifierType_ParticleSystem) { ParticleSystemModifierData *psmd = (ParticleSystemModifierData*) md; - psmd->dm=0; - psmd->psys=newdataadr(fd, psmd->psys); + psmd->dm= NULL; + psmd->psys= newdataadr(fd, psmd->psys); psmd->flag &= ~eParticleSystemFlag_psys_updated; + psmd->flag |= eParticleSystemFlag_file_loaded; } else if (md->type==eModifierType_Explode) { ExplodeModifierData *psmd = (ExplodeModifierData*) md; |