Explorar el Código

Update babylon.glTFLoader.ts

Trevor Baron hace 6 años
padre
commit
6ee1b95194
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      loaders/src/glTF/2.0/babylon.glTFLoader.ts

+ 1 - 1
loaders/src/glTF/2.0/babylon.glTFLoader.ts

@@ -1721,7 +1721,7 @@ module BABYLON.GLTF2 {
             }
 
             const deferred = new Deferred<void>();
-            let babylonTexture = new Texture(textureURL, this.babylonScene, samplerData.noMipMaps, false, samplerData.samplingMode, () => {
+            const babylonTexture = new Texture(textureURL, this.babylonScene, samplerData.noMipMaps, false, samplerData.samplingMode, () => {
                 if (!this._disposed) {
                     deferred.resolve();
                 }