fix init code
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user