Merge remote-tracking branch 'origin/main' into feat/paint-slots
# Conflicts: # packages/core/src/store/use-scene.ts # packages/editor/src/components/editor/index.tsx
This commit is contained in:
@@ -2606,3 +2606,13 @@ function syncDoorCutout(node: DoorNode, mesh: THREE.Mesh) {
|
||||
}
|
||||
cutout.visible = false
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a fresh door mesh for preview/ghost rendering.
|
||||
* Returns a mesh with an invisible hitbox root and visible children (frame, panels, hardware).
|
||||
*/
|
||||
export function buildDoorPreviewMesh(node: DoorNode): THREE.Mesh {
|
||||
const mesh = new THREE.Mesh()
|
||||
updateDoorMesh(node, mesh)
|
||||
return mesh
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user