diff --git a/build/three.js b/build/three.js index 602969670d14a0762d8d32d4359ed7372827e8ae..807ba225fc276d3d5d2f771dba766fab0a602c85 100644 --- a/build/three.js +++ b/build/three.js @@ -8953,6 +8953,18 @@ THREE.Light = function ( hex ) { }; THREE.Light.prototype = Object.create( THREE.Object3D.prototype ); + +THREE.Light.prototype.clone = function ( light ) { + + if ( light === undefined ) light = new THREE.Light(); + + THREE.Object3D.prototype.clone.call( this, light ); + + light.color.copy( this.color ); + + return light; + +}; /** * @author mrdoob / http://mrdoob.com/ */ @@ -9087,7 +9099,8 @@ THREE.PointLight.prototype.clone = function () { var light = new THREE.PointLight(); - light.color.copy( this.color ); + THREE.Light.prototype.clone.call( this, light ); + light.position.copy( this.position ); light.intensity = this.intensity; light.distance = this.distance; diff --git a/build/three.min.js b/build/three.min.js index d13fc5da408807f1749619916ad26436b35ba324..367a6b3c8708c2cbe1112211d2543305ee2bf00e 100644 --- a/build/three.min.js +++ b/build/three.min.js @@ -181,8 +181,8 @@ void 0===this.attributes.normal||void 0===this.attributes.uv)console.warn("Missi new THREE.Vector3,j[g]=new THREE.Vector3;var l,m,p,s,r,n,q,z,t,x,u,B,G,D,w,f=new THREE.Vector3,g=new THREE.Vector3,I,J,E,Z,A,S,F,H=this.offsets;E=0;for(Z=H.length;Ea.length?".":a.join("/"))+"/"},initMaterials:function(a,b){for(var c=[],d=0;d