fix extra rebuild

This commit is contained in:
wass08
2026-02-10 14:07:56 +09:00
parent 80cb039f86
commit b4375792ab
7 changed files with 28 additions and 8 deletions
@@ -29,7 +29,9 @@ export function ItemPanel() {
// Mark parent wall as dirty if item is attached to wall
if (node.asset.attachTo === 'wall' && node.parentId) {
useScene.getState().dirtyNodes.add(node.parentId as AnyNode['id'])
requestAnimationFrame(() => {
useScene.getState().dirtyNodes.add(node.parentId as AnyNode['id'])
})
}
},
[selectedId, node, updateNode],