From 84ef5f9076563a5c416335807ef2277d895743c5 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Wed, 12 Feb 2014 20:15:23 -0500 Subject: [PATCH] Updated builds. --- build/three.js | 17 ++++++++++++----- build/three.min.js | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/build/three.js b/build/three.js index 391f2607ba..60ae02d2a7 100644 --- a/build/three.js +++ b/build/three.js @@ -15509,14 +15509,21 @@ THREE.LOD.prototype.clone = function ( object ) { * @author alteredq / http://alteredqualia.com/ */ -THREE.Sprite = function ( material ) { +THREE.Sprite = ( function () { - THREE.Object3D.call( this ); + var geometry = new THREE.Geometry2( 3 ); + geometry.vertices.set( [ - 0.5, - 0.5, 0, 0.5, - 0.5, 0, 0.5, 0.5, 0 ] ); - this.geometry = { boundingSphere: new THREE.Sphere( new THREE.Vector3(), 0.5 ), addEventListener: function () {} /* WebGLRenderer dependency */ }; - this.material = ( material !== undefined ) ? material : new THREE.SpriteMaterial(); + return function ( material ) { -}; + THREE.Object3D.call( this ); + + this.geometry = geometry; + this.material = ( material !== undefined ) ? material : new THREE.SpriteMaterial(); + + }; + +} )(); THREE.Sprite.prototype = Object.create( THREE.Object3D.prototype ); diff --git a/build/three.min.js b/build/three.min.js index 78a1ecbec0..f35477106c 100644 --- a/build/three.min.js +++ b/build/three.min.js @@ -303,7 +303,7 @@ THREE.MorphAnimMesh.prototype.updateAnimation=function(a){var b=this.duration/th (this.morphTargetInfluences[this.lastKeyframe]=0,this.morphTargetInfluences[this.currentKeyframe]=1,this.morphTargetInfluences[a]=0,this.lastKeyframe=this.currentKeyframe,this.currentKeyframe=a);b=this.time%b/b;this.directionBackwards&&(b=1-b);this.morphTargetInfluences[this.currentKeyframe]=b;this.morphTargetInfluences[this.lastKeyframe]=1-b}; THREE.MorphAnimMesh.prototype.clone=function(a){void 0===a&&(a=new THREE.MorphAnimMesh(this.geometry,this.material));a.duration=this.duration;a.mirroredLoop=this.mirroredLoop;a.time=this.time;a.lastKeyframe=this.lastKeyframe;a.currentKeyframe=this.currentKeyframe;a.direction=this.direction;a.directionBackwards=this.directionBackwards;THREE.Mesh.prototype.clone.call(this,a);return a};THREE.LOD=function(){THREE.Object3D.call(this);this.objects=[]};THREE.LOD.prototype=Object.create(THREE.Object3D.prototype);THREE.LOD.prototype.addLevel=function(a,b){void 0===b&&(b=0);b=Math.abs(b);for(var c=0;c=this.objects[d].distance)this.objects[d-1].object.visible=!1,this.objects[d].object.visible=!0;else break;for(;d