Explorar o código

Merge branch 'patch-4' of git://github.com/gero3/three.js into dev

Mr.doob %!s(int64=12) %!d(string=hai) anos
pai
achega
dcb1336831
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/Raycaster.js

+ 1 - 1
src/core/Raycaster.js

@@ -10,7 +10,7 @@
 		this.ray = new THREE.Ray( origin, direction );
 
 		// normalized ray.direction required for accurate distance calculations
-		if( this.ray.direction.length() > 0 ) {
+		if( this.ray.direction.lengthSq() > 0 ) {
 
 			this.ray.direction.normalize();