diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-12-27 08:36:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-12-27 08:36:31 +0300 |
commit | 8d7b2d69cf5b8de0dab487b84b5f52ba308ddf4b (patch) | |
tree | 0871948e1c5cf2eb11e2c64b8ab02e109d6ae7ff /source | |
parent | 5ea243bbec1383814ffacce11b99306357a00863 (diff) |
cleanup: redundant tri-normal calculation
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/bvhutils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/bvhutils.c b/source/blender/blenkernel/intern/bvhutils.c index 4ad577a7bda..a3b65b92051 100644 --- a/source/blender/blenkernel/intern/bvhutils.c +++ b/source/blender/blenkernel/intern/bvhutils.c @@ -65,9 +65,7 @@ static float sphereray_tri_intersection(const BVHTreeRay *ray, float radius, con float idist; float p1[3]; - float plane_normal[3], hit_point[3]; - - normal_tri_v3(plane_normal, v0, v1, v2); + float hit_point[3]; madd_v3_v3v3fl(p1, ray->origin, ray->direction, m_dist); if (isect_sweeping_sphere_tri_v3(ray->origin, p1, radius, v0, v1, v2, &idist, hit_point)) { |