fix(blocks): a dynamic block copied to another drawing stays dynamic (#1816)

Only the definition's entities crossed drawings: its record's object
graph (parameters, visibility states, grips) stayed behind, and a
reference showing an evaluated copy lost the link to its definition.
The clipboard now captures the graph and the dynamic definition of an
evaluated reference, and paste and the block palette's insert-from-file
recreate them on the new records, re-pointing members and element tags.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-10-16 00:36:59 +03:00
1 parent ca408f4329
commit 091331f3bd
6 files changed
+109 -21

No files matched your search

+1 -1
View File
@@ -915,8 +915,8 @@ impl OpenCADStudio {
}
Some(crate::app::BlockDef {
name: used,
base_point: def.base_point,
entities,
..def.clone()
})
})
.collect();