修改三维课程编辑初始界面
This commit is contained in:
parent
c9b7d18e43
commit
2d767c4097
@ -86,7 +86,7 @@ export function AssetModelManager(scene) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
console.log(scope.loadAsset);
|
||||
return new Promise(function(resolve, reject){
|
||||
Promise.all(initlist).then((result) => {
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user