Fix for [#20171] Properties of Hair are not animateable

* Don't know when this got broken again, but now the "regrow hair" option works like it's supposed to again.
This commit is contained in:
Janne Karhu
2011-03-14 17:37:51 +00:00
parent 1c952cd933
commit d789484dc7

View File

@@ -4035,7 +4035,8 @@ void particle_system_update(Scene *scene, Object *ob, ParticleSystem *psys)
for(i=0; i<=part->hair_step; i++){
hcfra=100.0f*(float)i/(float)psys->part->hair_step;
BKE_animsys_evaluate_animdata(&part->id, part->adt, hcfra, ADT_RECALC_ANIM);
if((part->flag & PART_HAIR_REGROW)==0)
BKE_animsys_evaluate_animdata(&part->id, part->adt, hcfra, ADT_RECALC_ANIM);
system_step(&sim, hcfra);
psys->cfra = hcfra;
psys->recalc = 0;