event handlers for ceiling
This commit is contained in:
@@ -25,6 +25,7 @@ export const CeilingSystem = () => {
|
|||||||
const ceilingGrid = mesh.getObjectByName('ceiling-grid')
|
const ceilingGrid = mesh.getObjectByName('ceiling-grid')
|
||||||
if (ceilingGrid) {
|
if (ceilingGrid) {
|
||||||
ceilingGrid.visible = shouldShowGrid
|
ceilingGrid.visible = shouldShowGrid
|
||||||
|
ceilingGrid.scale.setScalar(shouldShowGrid ? 1 : 0.0) // Scale down to zero to prevent event interference when grid is hidden
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user