浏览代码

Merge pull request #777 from vousk/fix_stdMat_clone

bumpTexture does not have to be cloned here
David Catuhe 9 年之前
父节点
当前提交
52136e9039
共有 2 个文件被更改,包括 0 次插入2 次删除
  1. 0 1
      src/Materials/babylon.standardMaterial.js
  2. 0 1
      src/Materials/babylon.standardMaterial.ts

+ 0 - 1
src/Materials/babylon.standardMaterial.js

@@ -791,7 +791,6 @@ var BABYLON;
                 newStandardMaterial.bumpTexture = this.bumpTexture.clone();
             }
             if (this.lightmapTexture && this.lightmapTexture.clone) {
-                newStandardMaterial.bumpTexture = this.bumpTexture.clone();
                 newStandardMaterial.lightmapTexture = this.lightmapTexture.clone();
                 newStandardMaterial.useLightmapAsShadowmap = this.useLightmapAsShadowmap;
             }

+ 0 - 1
src/Materials/babylon.standardMaterial.ts

@@ -957,7 +957,6 @@
                 newStandardMaterial.bumpTexture = this.bumpTexture.clone();
             }
             if (this.lightmapTexture && this.lightmapTexture.clone) {
-                newStandardMaterial.bumpTexture = this.bumpTexture.clone();
                 newStandardMaterial.lightmapTexture = this.lightmapTexture.clone();
                 newStandardMaterial.useLightmapAsShadowmap = this.useLightmapAsShadowmap;
             }