fix(paste): pasted associative hatches follow the pasted boundary

Paste (and WBLOCK, which shares the kernel) kept the source boundary
handles, so the pasted hatch stayed tied to the original outline or to
unrelated handles in another drawing. The COPY remap now lives at the
document level and runs for both.

Refs #1370

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-09-28 20:33:54 +03:00
1 parent 71b300cc44
commit 3754426361
3 files changed
+39 -28

No files matched your search

+3
View File
@@ -543,6 +543,9 @@ pub(crate) fn paste_entities_kernel(
handle_map.insert(source.common().handle, copied);
}
}
// A pasted associative hatch follows the pasted boundary, or drops the
// association when the boundary was not pasted with it. (#1370)
crate::scene::remap_hatch_associations(doc, &handle_map);
let leader_links: Vec<(Handle, Handle)> = entities
.iter()
.filter_map(|source| {