Browse Source

Merge pull request #13603 from Mugen87/dev11

Mesh: Remove redundant property .index in .raycast()
Mr.doob 7 years ago
parent
commit
eb8f84647f
1 changed files with 1 additions and 6 deletions
  1. 1 6
      src/objects/Mesh.js

+ 1 - 6
src/objects/Mesh.js

@@ -295,12 +295,7 @@ Mesh.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 						intersection = checkBufferGeometryIntersection( this, raycaster, ray, position, uv, a, b, c );
 
-						if ( intersection ) {
-
-							intersection.index = a; // triangle number in positions buffer semantics
-							intersects.push( intersection );
-
-						}
+						if ( intersection ) intersects.push( intersection );
 
 					}