Files
vectorcraft/docs
dotCooCoo 632598888f Plug-ins: an edit made during an add-on preview survives Cancel and OK
With Add Artboard Guides previewing, deleting an artboard from the
Artboards panel ran inside the preview's interaction. On the next frame
the dialog could no longer find its artboard, canceled the preview, and
the cancel put the deleted artboard back. The same happened in every
add-on dialog: any command run while its preview showed was undone by
the next preview or by Cancel.

An add-on dialog's preview now marks its interaction (`dialog`). A
command from outside the dialog sets that interaction aside, runs on
the document without the preview as an undo step of its own, and the
dialog previews again from the command's result and selection, as a
tool drag already does. `edit.copy` and the `file.*` commands other
than `file.documentColorMode` still act on the document as the preview
shows it, and Edit Points Only keeps the old behavior, since it
previews a selection. A preview whose snapshot an outside command
changed runs again, also after a failed run.

Docs: docs/mcp.md (undo/redo row).
2026-12-04 17:29:37 -08:00
..