注释
This commit is contained in:
parent
12dab4eea4
commit
d6cd6c1e3e
@ -12,8 +12,8 @@ export function RailListN(){
|
||||
};
|
||||
// this.init = function(section,linklist,scene){
|
||||
this.init = function(section,sectionList,switchdata,scene){
|
||||
console.log(section);
|
||||
console.log(switchdata);
|
||||
// console.log(section);
|
||||
// console.log(switchdata);
|
||||
for(let i=0;i<section.length;i++){
|
||||
scope.sectionrail[section[i].code] = {
|
||||
lp:section[i].lp,
|
||||
|
@ -18,7 +18,7 @@ export function SectionListN() {
|
||||
this.standtrack = [];
|
||||
var autorail;
|
||||
this.loadpromise = function(sectionList,sectiondata,scene,assetloader){
|
||||
console.log(sectiondata);
|
||||
// console.log(sectiondata);
|
||||
for(let i=0;i<assetloader.modellist.length;i++){
|
||||
if(assetloader.modellist[i].deviceType == "autorail"){
|
||||
autorail = assetloader.modellist[i].mesh.children[0];
|
||||
@ -39,7 +39,7 @@ this.loadpromise = function(sectionList,sectiondata,scene,assetloader){
|
||||
autorail.leftlist = leftlist;
|
||||
scene.add(scope.sectiongroup);
|
||||
return new Promise(function(resolve, reject){
|
||||
console.log(sectiondata);
|
||||
// console.log(sectiondata);
|
||||
for(let i=0,leni = sectiondata.length;i<leni;i++){
|
||||
let newsection = {
|
||||
code:sectiondata[i].code,
|
||||
|
Loading…
Reference in New Issue
Block a user