fix #IHZ9T 读取完成后更新 避免引用错误.

pull/653835/MERGE
ChenX 7 years ago
parent 2a45d79e8f
commit 560c79b095

@ -63,11 +63,10 @@ export class Database
file.ReadObject(this, this.MaterialDict);
file.ReadObject(this, this.TextureTableCol);
//TODO: 在对象关联情况下.更新可能出现 引用的问题.
this.MaterialDict.objectCol.forEach(m =>
for (let mat of this.MaterialDict.objectCol)
{
m.Update();
})
mat.Update();
}
this.hm.ReadFile(file);
}
@ -107,4 +106,4 @@ export class Database
console.warn("警告:尝试加入已经存在的id!");
this.idMap.set(index, id);
}
}
}

@ -279,7 +279,7 @@ export class Viewer
en.GoodBye();
}
})
xaop.end(db.ModelSpace, db.ModelSpace.ReadFile, () =>
xaop.end(db, db.FileRead, () =>
{
renderEntitys();
})

Loading…
Cancel
Save