forked from 1b-agent/opencadstudio-upstream
Add constraint bar visibility command
This commit is contained in:
1 parent
bb29b987c2
commit
fc4eeb3296
4 files changed
+121
No files matched your search
@@ -68,6 +68,21 @@ impl SelectObjectsCommand {
|
||||
}
|
||||
}
|
||||
|
||||
/// Standard selection behavior routed to a private apply command while
|
||||
/// retaining the public command name in the visible prompt.
|
||||
pub fn routed(prompt_cmd: &str, pending_cmd: &str) -> Self {
|
||||
Self {
|
||||
prompt_cmd: prompt_cmd.to_string(),
|
||||
pending_cmd: pending_cmd.to_string(),
|
||||
handles: Vec::new(),
|
||||
commit_on_enter: true,
|
||||
show_options: true,
|
||||
pick: None,
|
||||
pick_crossing: true,
|
||||
auto_constrain_settings: false,
|
||||
}
|
||||
}
|
||||
|
||||
/// Single-object variant: the first completed selection action applies
|
||||
/// immediately, with no Enter (used by commands that act on one object).
|
||||
pub fn instant(pending_cmd: &str) -> Self {
|
||||
|
||||
Reference in new issue
Block a user