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);
}

@ -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