Explorar o código

Fixed bug with AssetsManager

David Catuhe %!s(int64=9) %!d(string=hai) anos
pai
achega
409699f479

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 3 - 3
dist/preview release/babylon.core.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 3018 - 3017
dist/preview release/babylon.d.ts


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 4 - 4
dist/preview release/babylon.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 9 - 3
dist/preview release/babylon.max.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 4 - 4
dist/preview release/babylon.noworker.js


+ 1 - 1
materialsLibrary/test/add/addfur.js

@@ -104,7 +104,7 @@ window.prepareFur = function() {
 		setValue("heightTexture", HTON ? heightTexture : null);
 	});
 	
-	registerRangeUI("fur", "Hight Level fur", false, true, function(value) {
+	registerRangeUI("fur", "High Level fur", false, true, function(value) {
 		setValue("highLevelFur", value);
 		setMeshesVisible(value);
     }, function() {

+ 1 - 1
src/Tools/babylon.assetsManager.js

@@ -132,7 +132,7 @@ var BABYLON;
                 }
                 onError();
             };
-            this.texture = new BABYLON.Texture(this.url, scene, this.noMipmap, this.invertY, this.samplingMode, onload, onError);
+            this.texture = new BABYLON.Texture(this.url, scene, this.noMipmap, this.invertY, this.samplingMode, onload, onerror);
         };
         return TextureAssetTask;
     })();

+ 1 - 1
src/Tools/babylon.assetsManager.ts

@@ -173,7 +173,7 @@
                 onError();
             };
 
-            this.texture = new Texture(this.url, scene, this.noMipmap, this.invertY, this.samplingMode, onload, onError);
+            this.texture = new Texture(this.url, scene, this.noMipmap, this.invertY, this.samplingMode, onload, onerror);
         }
     }
 

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 8 - 2
src/Tools/babylon.tools.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 8 - 2
src/Tools/babylon.tools.ts