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:
parent
d30f80f963
commit
ca9ec8f47d
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue