Document Tools: Flood Fill Artboards' dialog is refused while its command is off

ui.menuDialog opened the Flood Fill Artboards dialog with no document or in an
editing mode the command refuses, and OK then failed. The dialog now checks the
command first and returns its reason. A reopened dialog also rolled back the open
preview only after reading the current fill, so with New Art Has Basic Appearance
off it opened on the previewed fill instead of the fill from before; it now rolls
the preview back first. The params text and docs/mcp.md say when it is refused.
This commit is contained in:
dotCooCoo committed 2026-12-01 02:24:30 -08:00
1 parent d9262da342
commit 5e309268d7
6 files changed
+33 -4

No files matched your search

+2 -1
View File
@@ -17839,7 +17839,8 @@ current fill or a color, and the layer, and previews on the canvas. The dialog d
trimmed layer name, a destination layer that holds a clipping mask, or Current Fill when there is no current fill.
Color opens on the current fill's color; for an RGB current fill, while that color is left unchanged, the dialog sends
the fill's own working RGB components, also those outside the sRGB gamut, with `keepModel: true`, so the fill stays RGB
in a CMYK document.
in a CMYK document. `ui.menuDialog {command: "addon.document.floodFillArtboards"}` opens the dialog, and is
refused with the command's reason while the command is disabled (with no document open, or in the editing modes above).
→ `{ids: [rectangle id…], layer, created}`
```json