fix(dimension): land DXF round-trip fixes (re-pin acadrust)
Re-pins acadrust to the dimension DXF round-trip fixes (rotation/text/oblique degree<->radian units, radial/angular/ordinate group codes, ordinate X/Y bit) and drops the OCS-side fix_dxf_dimension_rotations dimension arm, which now lives in the acadrust DXF reader (keeping it here would double-convert). Completes the dimension audit (Batch 5). Refs #181. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
0d42d57927
commit
959dd66e93
2 changed files with 6 additions and 6 deletions
|
|
@ -16,7 +16,7 @@ pub mod patterns;
|
|||
pub mod update_check;
|
||||
|
||||
use crate::scene::DerivedCaches;
|
||||
use acadrust::entities::{Dimension, EntityType};
|
||||
use acadrust::entities::EntityType;
|
||||
use acadrust::io::dwg::DwgReader;
|
||||
use acadrust::{CadDocument, DwgWriter, DxfReader, DxfWriter};
|
||||
use std::path::{Path, PathBuf};
|
||||
|
|
@ -856,9 +856,9 @@ fn fix_viewport_status_flags(doc: &mut CadDocument) {
|
|||
fn fix_dxf_dimension_rotations(doc: &mut CadDocument) {
|
||||
for entity in doc.entities_mut() {
|
||||
match entity {
|
||||
EntityType::Dimension(Dimension::Linear(d)) => {
|
||||
d.rotation = d.rotation.to_radians();
|
||||
}
|
||||
// Dimension angles (rotation / text / oblique) are converted
|
||||
// degrees->radians inside the acadrust DXF reader now, so a
|
||||
// dimension arm here would double-convert.
|
||||
EntityType::AttributeDefinition(a) => {
|
||||
a.rotation = a.rotation.to_radians();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue