From 6b53b4afb9cb2f334ca4503f05b02e7acc5f68e5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 20 Aug 2015 15:09:25 +1000 Subject: Avoid redundant normal calculation in heat-weight --- source/blender/blenkernel/intern/particle_distribute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/intern/particle_distribute.c') diff --git a/source/blender/blenkernel/intern/particle_distribute.c b/source/blender/blenkernel/intern/particle_distribute.c index 50634460028..87bc355894d 100644 --- a/source/blender/blenkernel/intern/particle_distribute.c +++ b/source/blender/blenkernel/intern/particle_distribute.c @@ -545,7 +545,7 @@ static void distribute_from_volume_exec(ParticleTask *thread, ParticleData *pa, v2=mvert[mface->v2].co; v3=mvert[mface->v3].co; - if (isect_ray_tri_v3(co, nor, v2, v3, v1, &cur_d, 0)) { + if (isect_ray_tri_v3(co, nor, v2, v3, v1, &cur_d, NULL)) { if (cur_dfoffset=cur_d*0.5f; /* to the middle of volume */ @@ -555,7 +555,7 @@ static void distribute_from_volume_exec(ParticleTask *thread, ParticleData *pa, if (mface->v4) { v4=mvert[mface->v4].co; - if (isect_ray_tri_v3(co, nor, v4, v1, v3, &cur_d, 0)) { + if (isect_ray_tri_v3(co, nor, v4, v1, v3, &cur_d, NULL)) { if (cur_dfoffset=cur_d*0.5f; /* to the middle of volume */ -- cgit v1.2.3