Fix #36630, Particlesystem - boids - goal - collision.
authorLukas Toenne <lukas.toenne@googlemail.com>
Fri, 27 Sep 2013 13:45:47 +0000 (13:45 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Fri, 27 Sep 2013 13:45:47 +0000 (13:45 +0000)
commit640fc26c030bc05175a2e6cec0e6fa3634065d4e
treeaa8f0d297490c44a732454f4071a25efd552919a
parent9aaeaae7e0cd423c9b5c2edae4419ee2fef4da92
Fix #36630, Particlesystem - boids - goal - collision.
Problem was introduced with r54648, which determined the initial interval for the Newton-Raphson method using the "total_time" of the collision - but this info is only defined for regular collisions, not
for the raycasting used in boids to find the "ground object". To ensure correct behavior, now clear the collision info before using it (good practice in any case), then check the inv_total_time variable
and use the standard 0.001 step if not defined.
source/blender/blenkernel/intern/boids.c
source/blender/blenkernel/intern/particle_system.c