Fix T47773: Particle System with Boids Crash.
authorBastien Montagne <montagne29@wanadoo.fr>
Sun, 13 Mar 2016 17:21:30 +0000 (18:21 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Sun, 13 Mar 2016 17:21:30 +0000 (18:21 +0100)
commit34fe03c7f25cd06876a79af418ced9f4cfa91226
treea5d26b842dff3c9f81e8ab8add3228d2119cec53
parented28134f71e2a23aee5818dcb52974930b27de1d
Fix T47773: Particle System with Boids Crash.

Problem was, during initialization of boids particles in `dynamics_step()`,
psys of target objects was not obtained with generic `psys_get_target_system()`
as later in code, which could lead to some uninitialized `psys->tree` usage...

Think it's safe enough for 2.77, though not a regression.
source/blender/blenkernel/intern/boids.c
source/blender/blenkernel/intern/particle_system.c