修改三维课程编辑初始界面

This commit is contained in:
sunzhenyu 2021-04-14 09:22:55 +08:00
parent c9b7d18e43
commit 2d767c4097
2 changed files with 9 additions and 3 deletions

View File

@ -86,7 +86,7 @@ export function AssetModelManager(scene) {
}
console.log(scope.loadAsset);
return new Promise(function(resolve, reject){
Promise.all(initlist).then((result) => {

View File

@ -77,12 +77,18 @@ export function Lesson3dEditor(dom,lessonData) {
let assetModelManager = new AssetModelManager(scene);
if(lessonData.assetList.length>0 || lessonData.modelList.length>0){
assetModelManager.lessonAssetsLoader(lessonData.assetList,lessonData.modelList);
console.log(lessonData);
if(lessonData){
if(lessonData.assetList.length>0 || lessonData.modelList.length>0){
assetModelManager.lessonAssetsLoader(lessonData.assetList,lessonData.modelList);
}else{
assetModelManager.lessonAssetsLoader();
}
}else{
assetModelManager.lessonAssetsLoader();
}
animate();