Преглед на файлове

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