cad-editor/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven a65a09c59e Fix: layout block-record resolution for DXF files
Root cause: the DXF reader never reads group code 340 (block_record
handle) inside LAYOUT objects, so layout.block_record stays Handle::NULL
after opening any DXF file.  This caused current_layout_block_handle()
to return NULL, which made belongs_to_visible_block() return true for
every entity — all entities appeared in all layouts simultaneously.

Fix in current_layout_block_handle() — three-tier lookup:
  1. Layout.block_record (non-null) — works for DWG files.
  2. Conventional DXF name ("*Model_Space", "*Paper_Space", …) derived
     from the layout's tab_order — works for standard DXF exporters.
  3. Position-based fallback: sort paper-space block records and paper
     layouts independently, then match by index — handles exporters that
     set tab_order = 0 for all layouts.

Apply the same two-tier lookup to model_space_block_handle().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-31 12:08:27 +03:00
..
app Fix: paper limits, Cohen-Sutherland clipping, frozen layers UI, PDF improvements 2026-03-31 08:18:29 +03:00
command Co-locate CadCommand impls with their ribbon toolbar modules 2026-03-22 23:21:29 +03:00
entities Phase 4: Viewport control and properties 2026-03-31 07:27:03 +03:00
io Fix: paper limits, Cohen-Sutherland clipping, frozen layers UI, PDF improvements 2026-03-31 08:18:29 +03:00
modules Phase 7: Plot settings and PDF export 2026-03-31 08:05:17 +03:00
scene Fix: layout block-record resolution for DXF files 2026-03-31 12:08:27 +03:00
shaders first commit 2026-03-22 14:56:27 +03:00
snap first commit 2026-03-22 14:56:27 +03:00
ui Aşama 2: Paper space görsel düzenleme 2026-03-31 07:17:45 +03:00
linetypes.rs first commit 2026-03-22 14:56:27 +03:00
main.rs Refactor src/main.rs into modular src/app/ structure 2026-03-22 22:44:32 +03:00
patterns.rs first commit 2026-03-22 14:56:27 +03:00