浏览代码

Merge pull request #5510 from bghgary/bug-fix

Add back support for passing in a File object to sceneLoader
David Catuhe 6 年之前
父节点
当前提交
9914e2b8ba
共有 2 个文件被更改,包括 34 次插入18 次删除
  1. 33 17
      src/Loading/babylon.sceneLoader.ts
  2. 1 1
      src/Tools/babylon.filesInput.ts

文件差异内容过多而无法显示
+ 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);
                     }