fix(scene): isolate drawing-space state

Cancel stale interaction state across space changes and keep live previews and zoom extents in their active paper/model context.\n\nRefs #539\nRefs #540\nRefs #541
This commit is contained in:
Hakan Seven committed 2026-07-28 18:51:20 +03:00
1 parent 8050fc79fd
commit 00cc17ea55
10 files changed
+424 -96

No files matched your search

+7
View File
@@ -362,6 +362,13 @@ impl CadCommand for PlineCommand {
}
}
fn on_space_change(&mut self) -> CmdResult {
match self.live_handle {
Some(handle) => CmdResult::FinalizeLiveEntity(handle),
None => CmdResult::Cancel,
}
}
fn wants_text_input(&self) -> bool {
// Accept A / L / C once we have at least the first point.
!self.vertices.is_empty()