Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Karhu <jhkarh@gmail.com>2010-09-03 09:54:09 +0400
committerJanne Karhu <jhkarh@gmail.com>2010-09-03 09:54:09 +0400
commit1642cb2a80e25eb0c70c514cef5086063f4665dd (patch)
tree40bf0fbb25aebe3926e65884c846bb8f5957da8c /source/blender/blenkernel/intern/boids.c
parentb06abafe7a502fe93a69b92813c9b8d0f7c9edc1 (diff)
Fix for [#22147] Particle system, fight boids bug (dead particle)
Diffstat (limited to 'source/blender/blenkernel/intern/boids.c')
-rw-r--r--source/blender/blenkernel/intern/boids.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/boids.c b/source/blender/blenkernel/intern/boids.c
index 7ae65d0113a..54ffda6c0a9 100644
--- a/source/blender/blenkernel/intern/boids.c
+++ b/source/blender/blenkernel/intern/boids.c
@@ -910,6 +910,7 @@ void boid_brain(BoidBrainData *bbd, int p, ParticleData *pa)
if(bpa->data.health <= 0.0f) {
pa->alive = PARS_DYING;
+ pa->dietime = bbd->cfra;
return;
}