Dynamic particles sometimes didn't properly use global coordinates.
Meaning they were transformed by an Object, for example when it has
animation constraints.

Error caused by attempt to get duplicators to work for particles. Will
need re-evaluation this.. for now restored old functionality, with
exception of dupli-groups.
This commit is contained in:
Ton Roosendaal 2006-04-08 14:50:04 +00:00
parent 0ee101f9ad
commit 16082eb732

@ -2538,8 +2538,11 @@ static void draw_particle_system(Object *ob, PartEff *paf)
}
myloadmatrix(G.vd->viewmat);
Mat4MulMat4(mat, paf->imat, ob->obmat);
mymultmatrix(mat);
/* flag abuse... but I need working code too now. This feature doesnt work for per frame animated objects */
if(ob->flag & OB_FROMGROUP) {
Mat4MulMat4(mat, paf->imat, ob->obmat);
mymultmatrix(mat);
}
if(ob->ipoflag & OB_OFFS_PARTICLE) ptime= ob->sf;
else ptime= 0.0;