fix(scene): bump geometry epoch after cache assignment on file open

populate_*_from_document() each called bump_geometry(); direct cache
assignment skipped it, leaving the wire cache stale on first open.
This commit is contained in:
Hakan Seven committed 2026-05-06 23:10:35 +03:00
1 parent d30f80f963
commit ca9ec8f47d
1 file changed
+2
+2
View File
@@ -93,6 +93,8 @@ impl H7CAD {
self.tabs[i].scene.hatches = caches.hatches;
self.tabs[i].scene.images = caches.images;
self.tabs[i].scene.meshes = caches.meshes;
// Invalidate the wire cache so the new document is tessellated.
self.tabs[i].scene.bump_geometry();
self.tabs[i].scene.selected = std::collections::HashSet::new();
self.tabs[i].scene.preview_wires = vec![];
self.tabs[i].scene.current_layout = "Model".to_string();