fix(paste): pasted entities land in the current space

The paste kernel added every entity to model space. It now takes the
space a new entity goes to: the block being edited, a layout's paper
space when no viewport is active, or model space.

Fixes #1652

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-10-08 08:34:49 +03:00
1 parent 5318609db0
commit e2f558ae4f
4 files changed
+75 -19

No files matched your search

+7 -1
View File
@@ -114,7 +114,13 @@ fn copy_with_dependencies(
})
.collect();
let (entities, deps) = crate::app::copy_to_clipboard_kernel(src, &handles);
crate::app::paste_entities_kernel(out, &entities, &deps, translate, None);
crate::app::paste_entities_kernel(
out,
&entities,
&deps,
translate,
crate::app::PasteSpace::Model,
);
}
/// Translate every entity of `out` so the overall bounds minimum lands on