diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-20 20:49:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-20 20:49:02 +0400 |
commit | 46b40e112b075a9a5a9d26e089f8e28c20257f19 (patch) | |
tree | aa12733862ecdf0abb93f8deb56bd389f1ae997d /source/blender/blenkernel/intern | |
parent | 106d41699aaa94ed8917c44c6f18a71f8a25e7a3 (diff) |
skip checks in statvis_calc_thickness(). also remove paranoid NULL checks in smallhash.c
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/editderivedmesh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/editderivedmesh.c b/source/blender/blenkernel/intern/editderivedmesh.c index cd4844fbc68..fcc2d7b0ed0 100644 --- a/source/blender/blenkernel/intern/editderivedmesh.c +++ b/source/blender/blenkernel/intern/editderivedmesh.c @@ -1684,7 +1684,7 @@ static void statvis_calc_thickness( #define FACE_RAY_TEST_ANGLE \ f_hit = BKE_bmbvh_ray_cast(bmtree, ray_co, ray_no, \ &dist, NULL, NULL); \ - if (f_hit) { \ + if (f_hit && dist < face_dists[index]) { \ float angle_fac = fabsf(dot_v3v3(ltri[0]->f->no, f_hit->no)); \ angle_fac = 1.0f - angle_fac; \ angle_fac = angle_fac * angle_fac * angle_fac; \ |