- fix for particle duplicators:

when an object has an Ipo, the timing for each duplicated Object is
  corrected for the lifetime of particle. Looks great!
  Remark: this won't work  for object location (is at particle) or for
  particle type 'Vect' which gives a rotation already. But now you can
  scale an object small, and let it grow over time.
This commit is contained in:
Ton Roosendaal
2003-12-15 14:18:37 +00:00
parent ec7c7d6983
commit 8e6892174b

View File

@@ -454,6 +454,9 @@ void particle_duplilist(Scene *sce, Object *par, PartEff *paf)
/* only basis-ball gets displist */
if(newob->type==OB_MBALL) newob->disp.first= newob->disp.last= 0;
/* to give ipos in object correct offset */
where_is_object_time(newob, ctime-pa->time);
where_is_particle(paf, pa, ctime, vec);
if(paf->stype==PAF_VECT) {
where_is_particle(paf, pa, ctime+1.0f, vec1);