From e37cbe9461a589699445b35e43ae731960b32429 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 10 Jul 2010 18:11:01 +0000 Subject: [PATCH] Bugfix [#22811] Dupli-Instancing for particles broken. commit r29079 removed 2 lines that are needed for instancing particles. --- source/blender/blenkernel/intern/particle_system.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c index 3ed2181f908..33ea9f5ba6e 100644 --- a/source/blender/blenkernel/intern/particle_system.c +++ b/source/blender/blenkernel/intern/particle_system.c @@ -3232,6 +3232,10 @@ static void hair_step(ParticleSimulationData *sim, float cfra) if(psys->part->type==PART_HAIR && psys->flag & PSYS_HAIR_DYNAMICS) do_hair_dynamics(sim); + /* following lines were removed r29079 but cause bug [#22811], see report for details */ + psys_update_effectors(sim); + psys_update_path_cache(sim, cfra); + psys->flag |= PSYS_HAIR_UPDATED; }