chore: switch acadrust to GitHub source, fix removed is_annotative field
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e66c7d44da
commit
4b4c0d31d2
3 changed files with 4 additions and 7 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
|
@ -41,6 +41,7 @@ checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "acadrust"
|
name = "acadrust"
|
||||||
version = "0.3.4"
|
version = "0.3.4"
|
||||||
|
source = "git+https://github.com/hakanaktt/acadrust#4025fd212880dfaa9bcb8b0a52b0bc2b3d2d4415"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"ahash",
|
"ahash",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
|
|
|
||||||
|
|
@ -23,4 +23,4 @@ rayon = "1"
|
||||||
windows-sys = { version = "0.59", features = ["Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] }
|
windows-sys = { version = "0.59", features = ["Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] }
|
||||||
|
|
||||||
[patch.crates-io]
|
[patch.crates-io]
|
||||||
acadrust = { path = "../acadrust" }
|
acadrust = { git = "https://github.com/hakanaktt/acadrust" }
|
||||||
|
|
|
||||||
|
|
@ -69,12 +69,8 @@ pub fn tessellate(
|
||||||
let anno_scale = {
|
let anno_scale = {
|
||||||
let xdata = &entity.common().extended_data;
|
let xdata = &entity.common().extended_data;
|
||||||
let is_annotative = if xdata.is_empty() {
|
let is_annotative = if xdata.is_empty() {
|
||||||
// Old DXF / no annotation metadata — fall back to group-code-293 flag.
|
// Old DXF / no annotation metadata — treat as annotative.
|
||||||
match entity {
|
true
|
||||||
EntityType::Text(t) => t.is_annotative,
|
|
||||||
EntityType::MText(m) => m.is_annotative,
|
|
||||||
_ => true,
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
xdata.get_record("AcAnnoPO").is_some()
|
xdata.get_record("AcAnnoPO").is_some()
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue