Distort: keep blend steps, saved corners, previews and deep masks right

- A blend step whose interpolated corners and nearer key's corners both
  fail the check is placed as the nearer key is.
- Corners an image can't take are dropped when a file is read, so a
  later transform does not make them its distortion.
- The .ai editing data writes a distorted image at any nesting depth, as
  it does a gradient mesh, so an opacity mask at the limit keeps it.
- A linked image's preview keeps the clipping path its file keeps, so a
  document reopened from its preview still knows the file's clip group
  and Update Links replaces it instead of nesting a new one.
- Docs: `corners` in the plugin API covers only corners that are not a
  parallelogram; Relink's warning for distorted images needs `preserve`.
This commit is contained in:
dotCooCoo
2026-11-18 17:44:10 -08:00
parent d6bc984cad
commit fb0a82b095
12 changed files with 208 additions and 25 deletions
+3 -1
View File
@@ -293,7 +293,9 @@ impl From<NodeWire> for Node {
color_mask: w.color_mask,
warp_piece: w.warp_piece,
clip_pieces: w.clip_pieces,
image_quad: w.image_quad,
// Corners the image can't take are dropped as they are read: it is placed by its
// transform, and no later transform makes them its distortion.
image_quad: w.image_quad.filter(|q| matches!(&w.kind, NodeKind::Image(im) if crate::image_quad::check_for(im, q).is_ok())),
};
Node {
id: w.id,