fixed ceiling item not selectable in viewer

This commit is contained in:
wass08
2026-02-25 09:33:31 +09:00
parent 8a0c7d31cc
commit 53ed21ba0b
@@ -92,6 +92,13 @@ const isNodeOnLevel = (node: AnyNode, levelId: string): boolean => {
if (parentNode?.type === 'wall' && parentNode.parentId === levelId) {
return true
}
// Ceiling/slab/roof-attached items: check if parent structure is on the level
if (
(parentNode?.type === 'ceiling' || parentNode?.type === 'slab' || parentNode?.type === 'roof') &&
parentNode.parentId === levelId
) {
return true
}
}
return false