With unchanged settings OK closes the dialog before the document, history and object checks run (crates/ui-egui/src/panels/three_d/raster.rs:147), so docs/mcp.md and docs/three-d.md now say the refusals apply when there are changes.
During an add-on dialog's preview, a command from outside the dialog no
longer acts on a path whose selected anchors the preview renumbered (Set
Corners recut it), so Clear does not delete other points of the base
path. A refused outside command leaves the dialog's own selection as it
was, while a command that ran, such as Deselect, still sets it. The
journal records the selection the command acts on before it, so an
action replays it on the same objects.
Typed RGB values convert from the RGB profile of the document the window
shows (or the working RGB profile) to the script document's RGB profile,
and separate through its CMYK profile only in a CMYK document. Hex,
screen-sample, HSB and web-snapped picks start in display sRGB.
A canceled undo group, or a canceled undo scope that put back an earlier
snapshot, now advances the document's history restore count, as Undo
and Redo do. The same steps can make an equal object with the same id
again after such a cancel, so Raster Settings, Placement Options and
Create Object Mosaic ask to be reopened. A scope canceled without an
edit puts back the same snapshot and does not count.
Raster Settings OK also refuses while a tool edit computed on another
thread is pending, since running the command would apply that edit
first, after the targets were checked.
When the objects the dialog opened on render again, OK clears their
earlier fallback warning from the status bar while it still shows it,
unless a selected object still gives that warning; the selection's
first other warning takes its place.
app.showColorPicker answers the run between slices, when the active
color settings hold the profiles of the document the window shows. A
pick in the run's own document, made or assigned other profiles by the
script, was converted to that document's RGB space and separated to CMYK
through the window's profiles instead.
The dialog now carries the RGB and CMYK profiles assigned to the run's
active document when the picker opens. On OK a display-sRGB pick (hex,
sample, HSB) is taken into that document's RGB space, RGB values typed
into the picker convert from the shown RGB profile to the document's,
and an RGB pick in a CMYK document separates through the document's
CMYK profile.
The craft-libs pins take main's rev. Until storytold/craft-libs#5381 merges,
crates/cad/src/blocks_compat.rs writes the block records, BLOCK definitions
and INSERT entities that #5381 adds to the drawing writer.
A Shaper group keeps its source art at the bottom and rebuilds the rest
from it. object.newGroup with a Shaper group as parent at index 0, and
layer.clippingMask.toggle (also a script's clipped = true) on a Shaper
group, put a new object where the source art was. The group then read
no sources and was deleted. Both commands now refuse a Shaper group and
leave the document as it is; the clipping check runs before the edit
opens, so a refused call leaves typing as it is.
The MCP export notes said a 16-bit Targa file opens with its one-bit
alpha. That holds for 16-bit RGB files only; a 16-bit gray file stores
an 8-bit alpha.
During an add-on dialog's preview, a command from outside the dialog
now uses the selection on show, without the objects the preview made,
instead of the selection from before the preview, so Clear no longer
deletes art that was not shown selected. A failed preview runs again
when an outside command changes only the selection, and the new-art
paints a selection command loads stay with the selection it made.
- A group with fill or stroke rows of its own stays whole, so its members
keep the paint the group draws for them.
- A clipping group whose shown clipped artwork overlaps a locked artboard
stays whole even when its clipping path lies off the artboard, including
when a target inside it is named by `ids`. Hidden artwork, art in pattern
editing mode and runs with `clipGroups` false do not count.
A native file's composite font named like an installed font is not lent
while the file's type is measured for placement, so the type is laid out
in the installed font. Adoption still brought that definition in under a
free name such as "Source Sans 3 2" and renamed the type to it, so the
placed type switched to the composite font it was never measured in.
Adoption now skips the source definitions the font database does not
lend: one named like an installed font, or one that fails its own checks.
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).
Web builds and FreeBSD on 64-bit ARM have no DWG decoder, yet File ›
Open, File › Place, their "All readable files" and "All placeable
files" filters, `openExtensions`, `document.formats`, the MCP open_file
description and the CLI help all offered `.dwg` there, and a DWG file
then failed in the missing decoder.
- `vectorcraft_cad::dwg::DECODES` says whether the build decodes DWG.
- `readable_format`, `open_exts()`, `place_exts()` and the per-format
dialog filters leave DWG out where it is false; `document.formats`
reports `dwg` as not readable there.
- An installed `.dwg` importer plug-in is used for such files on those
builds, by File › Open, File › Place and folder batches, and the
desktop app skips its background DWG conversion there.
- Without an importer, File › Place keeps the DWG-specific error, and a
`.dwg` file is still not read as HP-GL.
The listing functions take the decoder availability as a parameter, so
the new test checks both cases on every platform.
layers.index(n) and artboards.index(n) returned Not found for a negative
or fractional number before checking whether the collection was stale, so
a script holding a stale collection got the wrong error. Both now check
the collection first, as the art collections' index() does.