When the art's reduction runs on the dialog's first frame or command,
it drops the Prominent Colors weights along with replacing the rows,
so weights set before then make no step. The availability check now
leaves out both, as ui.recolorUndo does.
The docs say that fields set with ui.dialog.set become a step at the
next frame with the pointer up, so they group across frames drawn while
the pointer is down, and the progress line names the new tests.
ui.recolorUndo already went back to the fields the dialog opened with
when ui.dialog.set changed one before the dialog's first frame, but the
command list reported Undo Changes as unavailable. The availability
check now compares the fields with those the dialog opened with until
the first frame or step. Rows that the art's reduction is about to
replace do not count, so the check matches what ui.recolorUndo does.
The dialog's history takes the fields it read from the art as its first
state on the first frame, before the controls run. A pointer held from
that frame no longer leaves the first state unset until release, which
made the first edit the starting state with nothing to undo.
The docs say that fields set with ui.dialog.set become one step at the
next frame or step, and that Save All Colors and Save Prominent Colors
add a color group to the document at once, which Cancel and Undo
Changes leave in place.
Two buttons beside the Color Theme Picker go back and forward one color
edit made in the open dialog: the rows, Colors, Method, the Preserve
options, Limit to Library, the harmony rule, Global Adjust, the Color
Theme Picker's picks and the Prominent Colors weights. The art previews
each step. The dialog's history is separate from the document's: OK
still records one undo step and Cancel discards the edits with their
history. Each opening starts with nothing to undo, as the help page
describes (https://helpx.adobe.com/illustrator/desktop/manage-colors/modify-colors/recolor-options-overview.html).
VectorCraft's own rules: a change is one step once the pointer is
released, so a drag is one step; Reset is a step of its own; a new edit
after Undo Changes leaves nothing to redo; a button with no step to go
to is disabled; the dialog keeps at most 64 steps and 4 MiB of them.
ui.recolorUndo and ui.recolorRedo run the buttons and return
{changed, canUndo, canRedo}.
A damaged .ai can give a gradient mesh whose outline is enormous but finite.
draw_mesh_raster flattened that whole outline in device pixels (grown_outline),
and kurbo's flatten then asked for more segments than memory holds: a
"capacity overflow" panic (seen in import_fuzz's ai_written_meshes_never_panic).
An outline wider or taller than 2^24 device pixels now goes to the per-quad
drawing path the function already falls back to.
A third quick click on a swatch counts as a triple click, and so does
each quick click after it. Those clicks still applied the swatch, so a
triple click on a pattern swatch opened pattern editing and then
painted the tile art with the pattern itself. Only the first click of
a run of quick clicks now applies and selects the swatch.
The test now sends four quick clicks and gives the art a solid fill in
each view, so the list view's first click is checked on its own.
Running a script or a plug-in now ends the spot color base's link, as a
batch step already did, so a script that deletes the spot color and makes
another of the same name does not make the new one the base. Commands that
only list scripts or plug-ins keep the link.
While the link waits for an Undo, the color it captures before a command is
the one the guide shows, not that of a new spot color of the same name.
The second click of a double-click on a swatch also counted as a plain
click. After the double-click opened pattern editing, which selects the
tile art, that click applied the pattern swatch to the tile, so the
pattern held a copy of itself. The second click now only opens the
editor; the first click still applies and selects the swatch.
Reported by erolkarino. #7164 by mockydevs makes the engine refuse
painting the tile with its own pattern; this change stops the swatch
panel from sending that paint on a double-click.
The Enclosing Lasso Tool joins the Lasso group in both shipped
toolbars, right after the Lasso, and stays in Object › Plug-ins ›
Enclosing Lasso. The All Tools drawer lists it once, under Select, and
Edit › Keyboard Shortcuts › Tools lists it once. It has no default
shortcut, and the Lasso keeps Q. A toolbar the user already edited
keeps its saved layout; Reset Toolbar adds the tool.
Fixes#6117