陈鹏飞 3 years ago
parent
commit
ba104fe336
  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) { function (scene: Scene, message: string, exception?: any) {
LoadTool.remove(modelData.resPath + modelData.resName);
if (index < 5) { if (index < 5) {
let l_index = index + 1; let l_index = index + 1;
modelInfo.dispose(); modelInfo.dispose();
@ -618,7 +618,7 @@ export class SceneManager {
} }
else { else {
modelInfo.dispose(); modelInfo.dispose();
LoadTool.remove(modelData.resPath + modelData.resName); // LoadTool.onEnd();
console.log(message, exception); console.log(message, exception);
alert("模型加载失败,请刷新页面重试: " + message + "==" + exception); alert("模型加载失败,请刷新页面重试: " + message + "==" + exception);
// alert(exception); // alert(exception);

Loading…
Cancel
Save