mark nodes as dirty after deletion

This commit is contained in:
wass08
2026-02-24 08:19:49 +09:00
parent 5deb0b363e
commit 3791739b5b
@@ -152,6 +152,10 @@ export const deleteNodesAction = (
return { nodes: nextNodes, rootNodeIds: nextRootIds } return { nodes: nextNodes, rootNodeIds: nextRootIds }
}) })
// Notify systems that the parent has changed (e.g. Wall needs to fill a window hole)
parentsToMarkDirty.forEach((pId) => get().markDirty(pId)) // Trigger a full scene re-validation after deleting node (as deleting a slab can cause widespread changes to level elevations)
const currentNodes = get().nodes
Object.values(currentNodes).forEach((node) => {
get().markDirty(node.id)
})
} }