Browse Source

Add back support for passing in a File object to sceneLoader

Gary Hsu 6 năm trước cách đây
mục cha
commit
9724e362bd
2 tập tin đã thay đổi với 34 bổ sung18 xóa
  1. 33 17
      src/Loading/babylon.sceneLoader.ts
  2. 1 1
      src/Tools/babylon.filesInput.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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);
                     }