cad-editor/src/modules/draw
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 3548de332c feat(block): BEDIT block editor as a dedicated space tab (#261)
Selecting a block and running BEDIT (command, ribbon button, or a
double-click on the block) opens a block-editor "space" tab, named after
the block, alongside Model/Layout in the status bar. The tab draws ONLY
the block record's own entities in block-local coordinates; edits are
live on the definition, so every INSERT updates. Save Block / Discard
buttons (side toolbar) finish the session; Discard restores the on-entry
snapshot. Space switching is locked while a block is open, and BEDIT and
REFEDIT are mutually exclusive.

Implementation: a Scene.block_edit_block override at the top of
current_layout_block_handle scopes render/pick/new-entity ownership to the
edited block while current_layout stays "Model" (so the pervasive
Model-vs-paper code keeps model behaviour). The model render/pick paths
that hardcoded model_space_block_handle (wire tile set, hatch render +
pick, block-instance meshes) are made binding-aware so the block isolation
actually takes effect and model content does not leak in. Entering fits
the camera to the block (fit_all already scopes via the binding). Renaming
the block tab renames the block itself — new Scene::rename_block re-keys
the record, updates the Block marker and repoints every INSERT reference.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-14 13:03:04 +03:00
..
clipboard feat(alias): centralize command aliases in user-editable ocad.pgp (#286/#288) 2026-07-10 12:39:22 +03:00
draw fix(hatch): only direct children become holes in nested pick 2026-07-13 17:56:20 +03:00
groups feat(alias): centralize command aliases in user-editable ocad.pgp (#286/#288) 2026-07-10 12:39:22 +03:00
inquiry feat(alias): centralize command aliases in user-editable ocad.pgp (#286/#288) 2026-07-10 12:39:22 +03:00
layers feat(f64): command layer compiles on DVec3 2026-06-24 03:51:50 +03:00
modify feat(block): BEDIT block editor as a dedicated space tab (#261) 2026-07-14 13:03:04 +03:00
properties feat(alias): centralize command aliases in user-editable ocad.pgp (#286/#288) 2026-07-10 12:39:22 +03:00
changelog.rs refactor(modules): rename home module to draw, restore first-tab order 2026-06-16 11:49:14 +03:00
defaults.rs refactor(precision): widen command transform scalars and defaults to f64 (#311) 2026-07-12 00:34:38 +03:00
donate.rs refactor(modules): rename home module to draw, restore first-tab order 2026-06-16 11:49:14 +03:00
mod.rs feat(draw): Arc Continue command; 3-Point default 2026-07-08 20:39:40 +03:00
report.rs refactor(modules): rename home module to draw, restore first-tab order 2026-06-16 11:49:14 +03:00
select.rs feat(alias): centralize command aliases in user-editable ocad.pgp (#286/#288) 2026-07-10 12:39:22 +03:00