=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!
This commit is contained in:
@@ -556,7 +556,7 @@ static void write_particlesystems(WriteData *wd, ListBase *particles)
|
|||||||
ParticleData *pa = psys->particles;
|
ParticleData *pa = psys->particles;
|
||||||
|
|
||||||
for(a=0; a<psys->totpart; a++, pa++)
|
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);
|
if(psys->child) writestruct(wd, DATA, "ChildParticle", psys->totchild ,psys->child);
|
||||||
|
Reference in New Issue
Block a user