Keyed physics refresh:
[blender-staging.git] / source / blender / blenloader / intern / writefile.c
index 4b52da830191a86daeb2d3e175cce204c185268a..65a4a355717424182b373d14adb53b386c4fcbaf 100644 (file)
@@ -589,6 +589,7 @@ static void write_particlesettings(WriteData *wd, ListBase *idbase)
 static void write_particlesystems(WriteData *wd, ListBase *particles)
 {
        ParticleSystem *psys= particles->first;
+       KeyedParticleTarget *kpt;
        int a;
 
        for(; psys; psys=psys->next) {
@@ -604,6 +605,10 @@ static void write_particlesystems(WriteData *wd, ListBase *particles)
                                        writestruct(wd, DATA, "HairKey", pa->totkey, pa->hair);
                        }
                }
+               kpt = psys->keyed_targets.first;
+               for(; kpt; kpt=kpt->next)
+                       writestruct(wd, DATA, "KeyedParticleTarget", 1, kpt);
+
                if(psys->child) writestruct(wd, DATA, "ChildParticle", psys->totchild ,psys->child);
                writestruct(wd, DATA, "SoftBody", 1, psys->soft);
                if(psys->soft) write_pointcaches(wd, psys->soft->pointcache, PTCACHE_WRITE_PSYS);