fix(layers): protect locked entities

Keep locked-layer objects selectable for inspection while suppressing grips, property edits, command mutations, and stale editor writes.
This commit is contained in:
Hakan Seven committed 2026-08-12 12:46:41 +03:00
1 parent ca331fff48
commit 0be9c41773
25 files changed
+524 -118

No files matched your search

+4
View File
@@ -178,6 +178,10 @@ impl OpenCADStudio {
/// anonymous-block member visible/invisible per the state, then rebuild.
pub(super) fn apply_visibility_state(&mut self, insert_handle: Handle, state_idx: usize) {
let i = self.active_tab;
if self.reject_locked_edit(i, insert_handle) {
self.visibility_popup = None;
return;
}
// Resolve everything against an immutable borrow first.
let mapping = {