diff options
author | Ton Roosendaal <ton@blender.org> | 2008-10-08 20:29:09 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-10-08 20:29:09 +0400 |
commit | bfe2759ceb16be058041ddc402fc415f2d8b5669 (patch) | |
tree | 90a61ae54c89daf13a3d48740297a78a52679407 | |
parent | 9ebcaad82f47ab38a271d5a8a13d96e8f25ba52b (diff) |
Bugfix #17767
NULL check missing in particle bvhtree testing.
-rw-r--r-- | source/blender/blenkernel/intern/particle_system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c index 4a4278a05f8..39226faff1e 100644 --- a/source/blender/blenkernel/intern/particle_system.c +++ b/source/blender/blenkernel/intern/particle_system.c @@ -3101,7 +3101,7 @@ static void deflect_particle(Object *pob, ParticleSystemModifierData *psmd, Part col.md = ( CollisionModifierData * ) ( modifiers_findByType ( ec->ob, eModifierType_Collision ) ); col.ob_t = ob; - if(col.md->bvhtree) + if(col.md && col.md->bvhtree) BLI_bvhtree_ray_cast(col.md->bvhtree, col.co1, ray_dir, radius, &hit, particle_intersect_face, &col); } } |