Fix for [#17414] Particles doesn't obey to lattice once children are added

-Lattice calculations were left out for children by accident
This commit is contained in:
2008-08-04 14:17:11 +00:00
parent 0c9508d248
commit 9ec6083cfe

View File

@@ -3744,6 +3744,9 @@ int psys_get_particle_state(Object *ob, ParticleSystem *psys, int p, ParticleKey
/* TODO: pa_clump vgroup */
do_clump(state,key1,t,part->clumpfac,part->clumppow,1.0);
if(psys->lattice)
calc_latt_deform(state->co,1.0f);
}
else{
if (pa) { /* TODO PARTICLE - should this ever be NULL? - Campbell */