Commit: 4508642489af82df70ce7053c277e4015018edf1
Author: Campbell Barton
Date: Sat Dec 27 16:36:31 2014 +1100
Branches: blender-v2.73-release
https://developer.blender.org/rB4508642489af82df70ce7053c277e4015018edf1
cleanup: redundant tri-normal calculation
===================================================================
M source/blender/blenkernel/intern/bvhutils.c
===================================================================
diff --git a/source/blender/blenkernel/intern/bvhutils.c
b/source/blender/blenkernel/intern/bvhutils.c
index 4ad577a..a3b65b9 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)) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs