fix(layer): keep auto-registered layer names verbatim; one sync helper

ensure_layer had started trimming the name, so an entity on " A" got a
table entry "A" it never resolves to. Register the name as given again
and drop the unused return value. The five copies of the dirty-flag check
become sync_registered_layers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hakan SevenandClaude Opus 5.5 committed 2026-10-03 14:59:30 +03:00
1 parent 1b04bda547
commit e3c0d456f2
4 files changed
+20 -32

No files matched your search

+1 -5
View File
@@ -3491,11 +3491,7 @@ handles={handles_ms:.1} panel={:.1} ribbon={ribbon_ms:.1} tail={:.1} selected={}
if tracks_dimension_chain {
self.tabs[i].scene.last_created_dimension = new_handle;
}
if self.tabs[i].scene.layer_table_dirty {
self.tabs[i].scene.layer_table_dirty = false;
self.tabs[i].dirty = true;
self.refresh_layer_panel();
}
self.sync_registered_layers(i);
new_handle
}
}