Przeglądaj źródła

Merge pull request #1088 from RaananW/exception-handling-in-loader

Adding exception object to the list of callback params
David Catuhe 9 lat temu
rodzic
commit
9c524acfea
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/Loading/babylon.sceneLoader.ts

+ 1 - 1
src/Loading/babylon.sceneLoader.ts

@@ -101,7 +101,7 @@
             SceneLoader._registeredPlugins.push(plugin);
         }
 
-        public static ImportMesh(meshesNames: any, rootUrl: string, sceneFilename: string, scene: Scene, onsuccess?: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, progressCallBack?: () => void, onerror?: (scene: Scene, e: any) => void): void {
+        public static ImportMesh(meshesNames: any, rootUrl: string, sceneFilename: string, scene: Scene, onsuccess?: (meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => void, progressCallBack?: () => void, onerror?: (scene: Scene, message: string, exception?: any) => void): void {
             if (sceneFilename.substr && sceneFilename.substr(0, 1) === "/") {
                 Tools.Error("Wrong sceneFilename parameter");
                 return;