提交 c27ad526 编写于 作者: M Mr.doob

Clean up.

上级 c1afa582
......@@ -65,12 +65,11 @@ THREE.Mesh.prototype.raycast = ( function () {
var vA = new THREE.Vector3();
var vB = new THREE.Vector3();
var vC = new THREE.Vector3();
var tempA = new THREE.Vector3();
var tempB = new THREE.Vector3();
var tempC = new THREE.Vector3();
return function ( raycaster, intersects ) {
var geometry = this.geometry;
......@@ -226,7 +225,6 @@ THREE.Mesh.prototype.raycast = ( function () {
var vertices = geometry.vertices;
var faces = geometry.faces;
for ( var f = 0, fl = faces.length; f < fl; f ++ ) {
var face = faces[ f ];
......@@ -254,10 +252,10 @@ THREE.Mesh.prototype.raycast = ( function () {
if ( influence === 0 ) continue;
var targets = morphTargets[ t ].vertices;
vA.addScaledVector(tempA.subVectors(targets[ face.a ], a),influence);
vB.addScaledVector(tempB.subVectors(targets[ face.b ], b),influence);
vC.addScaledVector(tempC.subVectors(targets[ face.c ], c),influence);
vA.addScaledVector( tempA.subVectors( targets[ face.a ], a ), influence );
vB.addScaledVector( tempB.subVectors( targets[ face.b ], b ), influence );
vC.addScaledVector( tempC.subVectors( targets[ face.c ], c ), influence );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册