trp:修复仿真设备重新渲染数量不一致问题、标签异常回显问题
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
export function editTunnelInit(equipmentList) {
|
||||
// 清空设备
|
||||
this.clearTunnelEquipments()
|
||||
this.clearTunnelEquipments();
|
||||
//初始化将墙壁隐藏起来
|
||||
equipmentList.forEach((item) => {
|
||||
// 根据定位获取附着点信息
|
||||
const target = this.scene.getObjectByName(item.position);
|
||||
this.addEquipment(target, item, 1);
|
||||
});
|
||||
this.scene.traverse(function (point) {
|
||||
if (/^point/.test(point.name)) {
|
||||
point.enableHover =
|
||||
equipmentList.findIndex((item) => item.position === point.name) >= 0;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user