[Bf-blender-cvs] [e503e37] master: Revert fix for T45849, alternate fix coming up

Campbell Barton noreply at git.blender.org
Mon Aug 31 14:26:48 CEST 2015


Commit: e503e37333bd5d9d409530448d767bcd709f4a5a
Author: Campbell Barton
Date:   Mon Aug 31 22:12:19 2015 +1000
Branches: master
https://developer.blender.org/rBe503e37333bd5d9d409530448d767bcd709f4a5a

Revert fix for T45849, alternate fix coming up

epsilon check here didn't account for scale, causing T45919

===================================================================

M	source/blender/blenlib/intern/math_geom.c

===================================================================

diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c
index f7c2ad7..27b3f56 100644
--- a/source/blender/blenlib/intern/math_geom.c
+++ b/source/blender/blenlib/intern/math_geom.c
@@ -1955,7 +1955,7 @@ int isect_line_line_epsilon_v3(
 	div = dot_v3v3(ab, ab);
 
 	/* test zero length line */
-	if (UNLIKELY(div <= epsilon)) {
+	if (UNLIKELY(div == 0.0f)) {
 		return 0;
 	}
 	/* test if the two lines are coplanar */




More information about the Bf-blender-cvs mailing list