mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-14 19:26:56 -04:00
Plug-ins: numeric defaults stay in their declared range
This commit is contained in:
1 parent
847730bf8b
commit
08c8c11798
2 files changed
+27
-6
No files matched your search
+2
-1
@@ -111,7 +111,8 @@ pointers are offsets into the module's memory.
|
||||
- `name`: the menu label (1–64 printable characters). `kind`: `"filter"` (object filter) or `"effect"` (live effect).
|
||||
- `params`: in dialog order. Names are `[A-Za-z0-9_]`, not starting with `_`, and not `id`, `ids`, `params` or
|
||||
`preview`. The host validates the user's values before calling: missing values take the default, numbers are
|
||||
clamped to `min..max` (ints rounded), a wrong type or an unknown choice is an error.
|
||||
clamped to `min..max` (ints rounded), a wrong type or an unknown choice is an error. Numeric defaults
|
||||
are also clamped to their range, including the implicit zero default of an `int` parameter.
|
||||
|
||||
### Input
|
||||
|
||||
|
||||
Reference in new issue
Block a user