瀏覽代碼

Merging merging

Mr.doob 14 年之前
父節點
當前提交
77a10f78ce
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1 6
      src/materials/Texture.js

+ 1 - 6
src/materials/Texture.js

@@ -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 );
 
 	},