diff --git a/build/three.js b/build/three.js index 9caac51707ceddf0b3da5562b949935c43c0fc25..8c01ad87a572219a878e91b23df5333fc95212dc 100644 --- a/build/three.js +++ b/build/three.js @@ -7530,27 +7530,25 @@ THREE.Object3D = function () { this.up = new THREE.Vector3( 0, 1, 0 ); + this.position = new THREE.Vector3(); + var scope = this; Object.defineProperties( this, { - position: { - enumerable: true, - value: new THREE.Vector3() - }, rotation: { - enumerable: true, + enumerable: true, value: new THREE.Euler().onChange( function () { scope.quaternion.setFromEuler( scope.rotation, false ); } ) }, quaternion: { - enumerable: true, + enumerable: true, value: new THREE.Quaternion().onChange( function () { scope.rotation.setFromQuaternion( scope.quaternion, undefined, false ); } ) }, scale: { - enumerable: true, + enumerable: true, value: new THREE.Vector3( 1, 1, 1 ) } } ); diff --git a/build/three.min.js b/build/three.min.js index b23982b400ff811e144290e5ea15bda536816b5b..f6f52ab2207a2ba11affd1d2af673700ecc35456 100644 --- a/build/three.min.js +++ b/build/three.min.js @@ -152,8 +152,8 @@ un.far||s.push({distance:u,point:B,indices:[v,t,y],face:null,fac B[G];if(0!==J){var F=u[G].vertices;g.x+=(F[z.a].x-v.x)*J;g.y+=(F[z.a].y-v.y)*J;g.z+=(F[z.a].z-v.z)*J;h.x+=(F[z.b].x-t.x)*J;h.y+=(F[z.b].y-t.y)*J;h.z+=(F[z.b].z-t.z)*J;k.x+=(F[z.c].x-y.x)*J;k.y+=(F[z.c].y-y.y)*J;k.z+=(F[z.c].z-y.z)*J}}g.add(v);h.add(t);k.add(y);v=g;t=h;y=k}B=w.side===a.BackSide?c.intersectTriangle(y,t,v,!0):c.intersectTriangle(v,t,y,w.side!==a.DoubleSide);null!==B&&(B.applyMatrix4(f.matrixWorld),u=n.ray.origin.distanceTo(B),un.far||s.push({distance:u,point:B,face:z, faceIndex:D,object:f}))}}else if(f instanceof a.Line){E=n.linePrecision;w=E*E;q=f.geometry;null===q.boundingSphere&&q.computeBoundingSphere();b.copy(q.boundingSphere);b.applyMatrix4(f.matrixWorld);if(!1===n.ray.isIntersectionSphere(b))return s;e.getInverse(f.matrixWorld);c.copy(n.ray).applyMatrix4(e);if(q instanceof a.Geometry)for(x=q.vertices,E=x.length,v=new a.Vector3,t=new a.Vector3,y=f.type===a.LineStrip?1:2,q=0;qw||(u=c.origin.distanceTo(t),u< n.near||u>n.far||s.push({distance:u,point:v.clone().applyMatrix4(f.matrixWorld),face:null,faceIndex:null,object:f}))}},n=function(a,b,c){a=a.getDescendants();for(var d=0,e=a.length;d