handle holes in spatial grid manager

This commit is contained in:
wass08
2026-02-12 10:46:07 +09:00
parent 29e7fa09ef
commit cfa7b8bfc1
2 changed files with 62 additions and 12 deletions
@@ -42,6 +42,13 @@ export function SlabPanel() {
}
}, [node, setEditingHoleIndex])
// Clear hole editing state on unmount
useEffect(() => {
return () => {
setEditingHoleIndex(null)
}
}, [setEditingHoleIndex])
const handleAddHole = useCallback(() => {
if (!node) return