Fix composite node duplication placement (#542)

Route composite duplication through the fresh-subtree placement lifecycle, preserve descendant geometry and IDs, clear stale selection, and guarantee failed drafts restore history tracking.
This commit is contained in:
Aymeric Rabot
2026-07-24 14:17:05 +02:00
committed by GitHub
parent 3b70deb837
commit b95d737eb6
7 changed files with 257 additions and 150 deletions
+1 -1
View File
@@ -468,7 +468,7 @@ export const stairDefinition: NodeDefinition<typeof StairNode> = {
const aabb = stairFootprintAABB(node as StairNodeType, nodes)
return aabb ? { shape: 'aabb', ...aabb } : null
},
duplicable: true,
duplicable: { subtree: true },
deletable: true,
floorPlaced: {
footprints: (node, ctx) =>