Explorar o código

Merge pull request #13603 from Mugen87/dev11

Mesh: Remove redundant property .index in .raycast()
Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
eb8f84647f
Modificáronse 1 ficheiros con 1 adicións e 6 borrados
  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 );
 
 					}