forked from 1b-agent/opencadstudio-upstream
When the host DWG marks an xref as Unloaded (via XREF→Unload in AutoCAD), the user explicitly chose NOT to load that reference. We were ignoring that and pulling the external file in anyway, which on large drawings could push GPU memory past the device budget. Bump the acadrust dep to the branch that exposes `BlockRecord::is_loaded`, then short-circuit `resolve_xrefs` for any entry with `is_loaded == Some(false)`. New `XrefStatus::Unloaded` surfaces this in the command-line log so the user can see which references were skipped (and can re-load them via the XREF dialog). Co-Authored-By: Claude Opus 4.7 <[email protected]>
27 lines
893 B
TOML
27 lines
893 B
TOML
[package]
|
|
name = "H7CAD"
|
|
version = "0.2.6"
|
|
edition = "2021"
|
|
build = "build.rs"
|
|
|
|
[dependencies]
|
|
iced = { version = "0.14", features = ["debug", "image", "svg", "advanced", "canvas"] }
|
|
bytemuck = { version = "1.14", features = ["derive"] }
|
|
glam = { version = "0.27", features = ["bytemuck"] }
|
|
truck-modeling = "0.6"
|
|
truck-meshalgo = { version = "0.4", default-features = false, features = ["tessellation"] }
|
|
truck-polymesh = "0.6"
|
|
rfd = "0.15"
|
|
acadrust = "0.3.4"
|
|
open = "5"
|
|
printpdf = "0.9.1"
|
|
flate2 = "1"
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "bmp", "tiff"] }
|
|
rayon = "1"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
windows-sys = { version = "0.59", features = ["Win32_UI_Shell", "Win32_UI_WindowsAndMessaging"] }
|
|
|
|
[patch.crates-io]
|
|
acadrust = { git = "https://github.com/HakanSeven12/acadrust", branch = "feat/expose-blockrecord-is-loaded" }
|