From 6766df5693c85ea97a0deed16fc887cfc28f481a Mon Sep 17 00:00:00 2001 From: sunzhenyu Date: Tue, 9 Nov 2021 17:52:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E4=B8=89=E7=BB=B4=E9=A9=BE?= =?UTF-8?q?=E9=A9=B6=E6=89=98=E7=AE=A1=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jlmap3d/jl3ddrive/jl3ddrive.js | 2 +- src/jlmap3d/main/loaders/AssetLoader.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jlmap3d/jl3ddrive/jl3ddrive.js b/src/jlmap3d/jl3ddrive/jl3ddrive.js index 5cc3c4595..166620655 100644 --- a/src/jlmap3d/jl3ddrive/jl3ddrive.js +++ b/src/jlmap3d/jl3ddrive/jl3ddrive.js @@ -386,7 +386,7 @@ export function JLmapDriving(dom,data,mapId,storemod,translation,routegroup,proj realsectionlist = loadrealsectionlist; rails = loadrails; - // console.log(trainlisttest.group.children[0]); + console.log(trainlisttest); trainlisttest.group.children[0].getObjectByName("C6").add(cameracctv); } diff --git a/src/jlmap3d/main/loaders/AssetLoader.js b/src/jlmap3d/main/loaders/AssetLoader.js index ba5d08bca..a82c14347 100644 --- a/src/jlmap3d/main/loaders/AssetLoader.js +++ b/src/jlmap3d/main/loaders/AssetLoader.js @@ -136,7 +136,6 @@ export function AssetLoader(){ let suidao = new AssetModel(defaultsuidao); scope.modellist.push(suidao); - let background = new AssetModel(defaultbackground); scope.modellist.push(defaultbackground); @@ -665,7 +664,7 @@ export function AssetLoader(){ //object.traverse(function (node) {//获取其中对象 // node.frustumCulled = true; //}); - + if(asset.code){ scope.modelgroup[asset.code] = object; }else{