Merge PR #1574 from ramox81/codex/attdef-parity: ATTDEF dialog, -ATTDEF, tag display, Properties and Block Definition ribbon

Conflicts with #1573: the locale files and the catalog take both PRs'
entries (one "Insertion Point" mapping kept); the Home and Insert Block
panels take #1574's layout with #1573's Insert Block gallery.
This commit is contained in:
Hakan Seven committed 2026-10-02 10:17:54 +03:00
commit a1d0cf3873
47 files changed
+2970 -490

No files matched your search

+6
View File
@@ -220,6 +220,12 @@ impl OpenCADStudio {
// Record where this draw ended so ARC_CONT can continue from it
// (before `entity` is moved into commit_entity).
self.update_cont_anchor(&entity);
// ATTDEF's height becomes the next text height (TEXTSIZE), as TEXT's does.
if let codec::EntityType::AttributeDefinition(attribute) = &entity {
if self.tabs[i].active_cmd.as_ref().is_some_and(|cmd| cmd.name().ends_with("ATTDEF")) {
self.tabs[i].scene.document.header.text_height = attribute.height;
}
}
let label = self.history_label_from_active_cmd(i, "ENTITY");
let delta_safe = self.delta_add_safe(i, &entity);
let pending = self.begin_undo(i, label, 1, delta_safe);