fix init code

This commit is contained in:
wass08
2026-01-29 06:44:39 +09:00
parent 3b690038d7
commit 2f0e976878
4 changed files with 1198 additions and 2786 deletions
@@ -24,6 +24,7 @@ export const ItemSystem = () => {
const mesh = sceneRegistry.nodes.get(id) as THREE.Object3D
if (!mesh) return
if (item.asset.attachTo === 'wall-side') {
// Wall-attached item: offset Z by half the parent wall's thickness
const parentWall = item.parentId ? nodes[item.parentId as AnyNodeId] : undefined
@@ -37,6 +37,7 @@ export const WallSystem = () => {
const levelId = node.parentId
if (!levelId) return
if (!dirtyWallsByLevel.has(levelId)) {
dirtyWallsByLevel.set(levelId, new Set())
}