Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-08-25 15:45:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-08-25 15:57:03 +0300
commit50917edad54d2be0f5e3a6630382e28ab1fd32e0 (patch)
tree7d153e19ef5197e75c675c3b329eafd52063271d /source
parentba5807c2710939cf8171fb19830f82cece48759f (diff)
Fix T45853: Edge-slide UV-correct jitter
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenlib/intern/math_geom.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c
index ee1b74ce6fc..379c8524601 100644
--- a/source/blender/blenlib/intern/math_geom.c
+++ b/source/blender/blenlib/intern/math_geom.c
@@ -2986,7 +2986,7 @@ static float mean_value_half_tan_v3(const struct Float3_Len *d_curr, const struc
float cross[3], area;
cross_v3_v3v3(cross, d_curr->dir, d_next->dir);
area = len_v3(cross);
- if (LIKELY(area != 0.0f)) {
+ if (LIKELY(fabsf(area) > FLT_EPSILON)) {
const float dot = dot_v3v3(d_curr->dir, d_next->dir);
const float len = d_curr->len * d_next->len;
return (len - dot) / area;
@@ -3001,7 +3001,7 @@ static float mean_value_half_tan_v2(const struct Float2_Len *d_curr, const struc
float area;
/* different from the 3d version but still correct */
area = cross_v2v2(d_curr->dir, d_next->dir);
- if (LIKELY(area != 0.0f)) {
+ if (LIKELY(fabsf(area) > FLT_EPSILON)) {
const float dot = dot_v2v2(d_curr->dir, d_next->dir);
const float len = d_curr->len * d_next->len;
return (len - dot) / area;