cad-editor/src/io
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan 0996b75bdd Revert: stop honoring BlockRecord.is_loaded for xref skip decision
Empirically the DWG \"loaded\" bit doesn't track AutoCAD's XREF Manager
\"Loaded\"/\"Unloaded\" state reliably:

  - File A: manager \"Loaded\", on-disk is_loaded = Some(true)
  - File B: manager \"Loaded\", on-disk is_loaded = Some(false)

Same UI state, opposite bit values, so we were incorrectly skipping
xrefs the user wants loaded. Drop the `is_loaded == Some(false)` skip
and auto-resolve every xref again. The OOM problem this was meant to
mitigate is now addressed by the frustum culler, so loading more
xrefs no longer threatens the GPU budget.

The `BlockRecord::is_loaded` field + acadrust patch stay in place so
we can revisit once we identify the actual on-disk representation of
XREF→Unload (likely an XREF dependency record or
ACAD_XREF_PANEL_DATA xrecord).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-14 14:14:07 +03:00
..
mod.rs feat(io): drop parser-garbage entities at load time 2026-05-13 10:00:16 +03:00
obj.rs cargo fmt 2026-05-12 10:36:15 +03:00
pdf_export.rs cargo fmt 2026-05-12 10:36:15 +03:00
plot_style.rs cargo fmt 2026-05-12 10:36:15 +03:00
print_to_printer.rs cargo fmt 2026-05-12 10:36:15 +03:00
step.rs cargo fmt 2026-05-12 10:36:15 +03:00
stl.rs cargo fmt 2026-05-12 10:36:15 +03:00
xref.rs Revert: stop honoring BlockRecord.is_loaded for xref skip decision 2026-05-14 14:14:07 +03:00