Browse Source

Removed invalid face from raycast.

michael 12 years ago
parent
commit
5d2bc56312
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/core/Raycaster.js

+ 1 - 3
src/core/Raycaster.js

@@ -171,13 +171,11 @@
 
 						if ( ! THREE.Triangle.containsPoint( intersectPoint, vA, vB, vC ) ) continue;
 
-						var face = new THREE.Face3( vA, vB, vC );
-
 						intersects.push( {
 
 							distance: planeDistance, // this works because the original ray was normalized, and the transformed localRay wasn't
 							point: raycaster.ray.at(planeDistance),
-							face: face,
+							face: null,
 							faceIndex: null,
 							object: object