mark nodes as dirty after deletion
This commit is contained in:
@@ -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)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user