Merging merging

This commit is contained in:
Mr.doob
2011-08-03 16:03:37 +02:00
parent 55b753ed09
commit 77a10f78ce
+1 -6
View File
@@ -27,12 +27,7 @@ THREE.Texture.prototype = {
clone: function () {
var clonedTexture = new THREE.Texture( this.image, this.mapping, this.wrapS, this.wrapT, this.magFilter, this.minFilter );
clonedTexture.offset.copy( this.offset );
clonedTexture.repeat.copy( this.repeat );
return clonedTexture;
return new THREE.Texture( this.image, this.mapping, this.wrapS, this.wrapT, this.magFilter, this.minFilter );
},