forked from 1b-agent/opencadstudio-upstream
SWEEP: Expression option, reference prompts and localized messages
- Scale and Twist take an Expression evaluated with the drawing's parameters; invalid input prints the reference message and asks again. - The scale and twist prompts use the reference wording and defaults. - The SWEEP prompts and refusal messages are in the locale catalog with translations in every locale. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
1a18fdd0cf
commit
56f3f68de9
27 files changed
+346
-64
No files matched your search
@@ -76,11 +76,9 @@ pub fn scaled_sweep_path_refusal(path: &EntityType) -> Option<&'static str> {
|
||||
},
|
||||
};
|
||||
if closed {
|
||||
Some("Cannot use scale option when path curve is closed.
|
||||
The selected path curve is not valid.")
|
||||
Some("Cannot use scale option when path curve is closed.")
|
||||
} else if !smooth {
|
||||
Some("Path curve must be smooth when using scale option.
|
||||
The selected path curve is not valid.")
|
||||
Some("Path curve must be smooth when using scale option.")
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user