1
This commit is contained in:
@ -87,6 +87,24 @@ class AppRay extends Monobehiver {
|
||||
return;
|
||||
}
|
||||
|
||||
// 检查是否点击的是放置区域
|
||||
if (pickInfo.pickedMesh.name.startsWith('placement_')) {
|
||||
const zones = this.mainApp.appDropZone.getPlacementZones();
|
||||
const clickedZone = zones.find(zone => zone.mesh === pickInfo.pickedMesh);
|
||||
if (clickedZone) {
|
||||
EventBridge.dropZoneClick({
|
||||
wallName: clickedZone.wallName,
|
||||
index: clickedZone.index,
|
||||
center: clickedZone.center,
|
||||
width: clickedZone.width,
|
||||
height: clickedZone.height,
|
||||
normal: clickedZone.normal,
|
||||
mesh: clickedZone.mesh
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
this.mainApp.appDomTo3D.hideAll()
|
||||
|
||||
const materialName = pickInfo.pickedMesh.material?.name || '';
|
||||
|
||||
Reference in New Issue
Block a user