소스 검색

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;
             }