fix(scene): clear selection after erase

This commit is contained in:
Hakan Seven committed 2026-07-28 17:35:21 +03:00
1 parent 05b044f367
commit 8050fc79fd
7 files changed
+50 -11

No files matched your search

+1 -1
View File
@@ -2473,7 +2473,7 @@ impl Scene {
pub fn clear(&mut self) {
self.document.record_all_entities_for_transaction();
self.document = CadDocument::new();
self.selected = HashSet::default();
self.replace_selection(HashSet::default());
self.preview_wires = vec![];
self.preview_text = vec![];
self.current_layout = "Model".to_string();