Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenloader/intern/writefile.c')
-rw-r--r--source/blender/blenloader/intern/writefile.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 46cc62fff1c..98db27182ab 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -660,8 +660,13 @@ static void write_particlesystems(WriteData *wd, ListBase *particles)
writestruct(wd, DATA, "ParticleTarget", 1, pt);
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->ptcaches);
+
+ if(psys->clmd) {
+ writestruct(wd, DATA, "ClothModifierData", 1, psys->clmd);
+ writestruct(wd, DATA, "ClothSimSettings", 1, psys->clmd->sim_parms);
+ writestruct(wd, DATA, "ClothCollSettings", 1, psys->clmd->coll_parms);
+ }
+
write_pointcaches(wd, &psys->ptcaches);
}
}