Browse Source

加载失败处理

beijing
刘向辉 3 years ago
parent
commit
1e9112223a
  1. 4
      src/app/babylon/controller/scene-manager.ts

4
src/app/babylon/controller/scene-manager.ts

@ -605,7 +605,7 @@ export class SceneManager {
},
function (scene: Scene, message: string, exception?: any) {
LoadTool.remove(modelData.resPath + modelData.resName);
if (index < 5) {
let l_index = index + 1;
modelInfo.dispose();
@ -618,7 +618,7 @@ export class SceneManager {
}
else {
modelInfo.dispose();
LoadTool.remove(modelData.resPath + modelData.resName);
// LoadTool.onEnd();
console.log(message, exception);
alert("模型加载失败,请刷新页面重试: " + message + "==" + exception);
// alert(exception);

Loading…
Cancel
Save