Explorar o código

Ray: Fix precission issue. See #5774.

Mr.doob %!s(int64=11) %!d(string=hai) anos
pai
achega
976f78bb5e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/math/Ray.js

+ 1 - 1
src/math/Ray.js

@@ -113,7 +113,7 @@ THREE.Ray.prototype = {
 		var det = Math.abs( 1 - a01 * a01 );
 		var s0, s1, sqrDist, extDet;
 
-		if ( det >= 0 ) {
+		if ( det > 0 ) {
 
 			// The ray and segment are not parallel.