Browse Source

Add back support for passing in a File object to sceneLoader

Gary Hsu 6 years ago
parent
commit
9724e362bd
2 changed files with 34 additions and 18 deletions
  1. 33 17
      src/Loading/babylon.sceneLoader.ts
  2. 1 1
      src/Tools/babylon.filesInput.ts

File diff suppressed because it is too large
+ 33 - 17
src/Loading/babylon.sceneLoader.ts


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

@@ -258,7 +258,7 @@ module BABYLON {
                     this._engine.stopRenderLoop();
                 }
 
-                SceneLoader.LoadAsync("file:", this._sceneFileToLoad.name, this._engine, (progress) => {
+                SceneLoader.LoadAsync("file:", this._sceneFileToLoad, this._engine, (progress) => {
                     if (this._progressCallback) {
                         this._progressCallback(progress);
                     }