diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-04-18 21:23:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-04-18 21:23:02 +0400 |
commit | 5502c74a1a81a68f9976b2cba21793a35bf2b3bf (patch) | |
tree | 21cb6106139c95d0d10e5930ce6fca71a58dd014 /source/blender/blenkernel/intern/editderivedmesh.c | |
parent | 5c72a19c09a8066b0cbe49730dc129bd93d5857a (diff) |
fix for problem with too low epsilon when calculating thickness, also increase limits.
Diffstat (limited to 'source/blender/blenkernel/intern/editderivedmesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/editderivedmesh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/editderivedmesh.c b/source/blender/blenkernel/intern/editderivedmesh.c index 37f4a787a36..6b88b9779d9 100644 --- a/source/blender/blenkernel/intern/editderivedmesh.c +++ b/source/blender/blenkernel/intern/editderivedmesh.c @@ -45,6 +45,7 @@ #include "BLI_math.h" #include "BLI_jitter.h" +#include "BLI_bitmap.h" #include "BKE_cdderivedmesh.h" #include "BKE_mesh.h" @@ -1622,7 +1623,7 @@ static void statvis_calc_thickness( /* result */ unsigned char (*r_face_colors)[4]) { - const float eps_offset = FLT_EPSILON * 10.0f; + const float eps_offset = 0.00001f; float *face_dists = (float *)r_face_colors; /* cheating */ const bool use_jit = samples < 32; float jit_ofs[32][2]; @@ -1984,7 +1985,6 @@ void BKE_editmesh_statvis_calc(BMEditMesh *em, DerivedMesh *dm, /* -------------------------------------------------------------------- */ /* Editmesh Vert Coords */ -#include "BLI_bitmap.h" struct CageUserData { int totvert; float (*cos_cage)[3]; |