邓洁 : 隧道模型合并
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
export function removeDev() {
|
||||
if (!this.targetPoint.hasDevice) {
|
||||
alert("该附着点不存在设备");
|
||||
return;
|
||||
} else {
|
||||
// 删除模型逻辑
|
||||
const devId = this.targetPoint.info.devId;
|
||||
|
||||
const model = this.scene.getObjectById(devId);
|
||||
this.scene.remove(model);
|
||||
|
||||
// 附着点可见
|
||||
this.targetPoint.visible = true;
|
||||
this.targetPoint.info = null;
|
||||
// 按钮可否操作情况
|
||||
this.addBtn.disabled = false;
|
||||
this.removeBtn.disabled = true;
|
||||
this.targetPoint.hasDevice = false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user