Reject invalid Slice toggle parameters

This commit is contained in:
dotCooCoo
2026-11-06 09:42:35 +07:00
committed by bflatastic
parent f7fe3a0f43
commit b4a4f2aa4f
3 changed files with 29 additions and 4 deletions
+1
View File
@@ -4466,6 +4466,7 @@ deselects the slices in every open document; unlocking or showing them again lea
restore the selection that was cleared. While the slices are locked or hidden, a command that selects slices, such as
`select.object.slices` (which replies `count: 0`), `object.slice.select`, `object.slice.create`, `edit.undo` or
`edit.redo`, leaves them out; a selected object that is an object slice stays selected.
`object.slice.clipToArtboard`, `view.slices.hide`, and `view.slices.lock` reject a flag that is not a boolean. Omitting the flag toggles its current value.
```json
{"name":"run_command","arguments":{"command":"object.slice.make","params":{}}}