From debf29022a1a720cc1ea324ca3d345f8663a84fc Mon Sep 17 00:00:00 2001 From: Joseph Eagar Date: Wed, 26 Dec 2007 15:25:30 +0000 Subject: [PATCH] =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! --- source/blender/blenloader/intern/writefile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; atotpart; 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);