Explorar el Código

Fixed bug in Ray when using recursive

Mr.doob hace 13 años
padre
commit
f957d5882d
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/core/Ray.js

+ 2 - 2
src/core/Ray.js

@@ -235,7 +235,7 @@
 
 		for ( var i = 0, l = descendants.length; i < l; i ++ ) {
 
-			intersectObject( descendants[ i ], this, intersects );
+			intersectObject( descendants[ i ], ray, intersects );
 
 		}
 	};
@@ -261,7 +261,7 @@
 
 		}
 
-		intersectObject(object,this,intersects);
+		intersectObject( object, this, intersects );
 
 		intersects.sort( descSort );