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 <[email protected]>
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

+1 -1
View File
@@ -95,7 +95,7 @@ mod constraint;
mod dim_edit;
pub(crate) use clipboard::{
copy_to_clipboard_kernel, paste_entities_kernel, remap_ext_subtree_reference,
copy_to_clipboard_kernel, paste_entities_kernel, remap_ext_subtree_reference, PasteSpace,
};
impl OpenCADStudio {