forked from 1b-agent/opencadstudio-upstream
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:
1 parent
8050fc79fd
commit
00cc17ea55
10 files changed
+424
-96
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user