Hakan Seven
2712bb80e4
fix(layers): deleting a non-empty layer warns and removes its objects ( #237 )
...
Deleting a layer only dropped the layer record, leaving its objects in the
file still tagged with the (now-gone) layer name. Now:
- Empty layer → deleted straight away.
- Non-empty layer → a warning modal ("Layer X is not empty — N objects;
deleting also removes them. Continue?") with Delete Objects / Cancel.
Confirming erases every object on the layer, then removes the layer, as
one undo step. The layer record is dropped before the erase so the
locked-layer guard can't keep its objects.
- Layer "0" and the current layer can't be deleted (reported on the
command line) instead of silently leaving a broken state.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 17:23:32 +03:00
..
commands
feat(layers): enforce layer lock (select/modify/fade + cursor badge)
2026-07-01 13:10:39 +03:00
update
fix(layers): deleting a non-empty layer warns and removes its objects ( #237 )
2026-07-01 17:23:32 +03:00
view
fix(layers): deleting a non-empty layer warns and removes its objects ( #237 )
2026-07-01 17:23:32 +03:00
automation.rs
fix(rotate): apply a typed angle right after the centre ( #159 )
2026-06-25 19:58:45 +03:00
command_driver.rs
feat(attedit): attribute editor dialog for blocks
2026-07-01 08:05:25 +03:00
document.rs
feat(commands): expand standard CAD command coverage
2026-06-29 08:23:58 +03:00
expr_eval.rs
fix(expr-eval): bound eval_to_string against super-linear DoS
2026-06-28 22:41:02 +03:00
helpers.rs
fix(paste): UTM-precise paste/block base via f64 centroid
2026-06-24 10:42:58 +03:00
history.rs
perf(hash): swap std HashMap/HashSet for rustc-hash FxHash
2026-06-05 00:35:53 +03:00
layers.rs
refactor: move resource/IO root modules under io/
2026-06-26 23:06:40 +03:00
mod.rs
fix(layers): deleting a non-empty layer warns and removes its objects ( #237 )
2026-07-01 17:23:32 +03:00
model_ops.rs
fix(web): restore wasm build broken by SECTION + file association
2026-06-29 17:13:17 +03:00
mtext_editor.rs
refactor: remove remaining world_offset vestiges in app/
2026-06-24 19:01:25 +03:00
plugin_host.rs
fix(plugin): f64 pick coords + harden out-of-process lifecycle
2026-06-25 00:16:08 +03:00
properties.rs
feat(properties): show & edit block attributes in panel
2026-07-01 07:42:50 +03:00
settings.rs
feat(io): autosave to .sv$ recovery files (SAVETIME command) ( #205 )
2026-06-29 13:17:40 +03:00
style_ops.rs
chore: clear compiler warnings
2026-06-18 21:18:09 +03:00
text_inline.rs
feat(ucs): orient text-bearing annotations to the active UCS
2026-06-22 18:18:35 +03:00
visibility.rs
refactor(scene): group modules into role-based subfolders
2026-06-16 11:33:46 +03:00