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:
authorJoseph Eagar <joeedh@gmail.com>2007-12-26 18:25:30 +0300
committerJoseph Eagar <joeedh@gmail.com>2007-12-26 18:25:30 +0300
commitdebf29022a1a720cc1ea324ca3d345f8663a84fc (patch)
tree169f05401a85a0fe867dc59e83c29e6e1cd2f359 /source/blender/blenloader/intern
parent10b8237eab7e41ef7563cedbf6a2e4e5dda13456 (diff)
=Particle bugfix=
Hair keys were saved via a non-sdna function, which resulted in endian problems. As ton pointed out on irc, he invented sdna for a reason!
Diffstat (limited to 'source/blender/blenloader/intern')
-rw-r--r--source/blender/blenloader/intern/writefile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 90f48868911..f1fe64eb820 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -556,7 +556,7 @@ static void write_particlesystems(WriteData *wd, ListBase *particles)
ParticleData *pa = psys->particles;
for(a=0; a<psys->totpart; a++, pa++)
- writedata(wd, DATA, MEM_allocN_len(pa->hair),pa->hair);
+ writestruct(wd, DATA, "HairKey", pa->totkey, pa->hair);
}
}
if(psys->child) writestruct(wd, DATA, "ChildParticle", psys->totchild ,psys->child);