fixed ceiling item not selectable in viewer
This commit is contained in:
@@ -92,6 +92,13 @@ const isNodeOnLevel = (node: AnyNode, levelId: string): boolean => {
|
|||||||
if (parentNode?.type === 'wall' && parentNode.parentId === levelId) {
|
if (parentNode?.type === 'wall' && parentNode.parentId === levelId) {
|
||||||
return true
|
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
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user