预览模式和编辑模式大致完成

This commit is contained in:
Hcat1314
2023-12-20 12:21:42 +08:00
parent 0341e93686
commit a850d9af78
9 changed files with 894 additions and 51 deletions

View File

@@ -521,5 +521,16 @@ export default class Demo {
}
this.addEquipment(pointmodel, formInfo);
}
//进行预览和编辑模式的一些操作
if (this.isedit == false) {
this.scene.traverse(function (item) {
if (item.name.includes('point')) {
if (item.hasDevice == false) {
item.visible = false
item.layers.set(-1)
}
}
})
}
}
}