This commit is contained in:
2026-05-13 12:36:48 +08:00
parent 21255a701d
commit 066294e74f
11 changed files with 194 additions and 80 deletions

View File

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