3D: a replay draws the custom bevel it recorded, and a mixed selection takes the whole bevel

effect.apply and effect.setParams given bevel {custom: name} record the
bevel's points in their journal entry as savedBevel, and savedBevel given
with the name is used in place of the bevels file's points, so a replay
draws the same bevel after the file changes or drops the name.

The 3D and Materials panel sends a custom bevel's name and points with
bevel whenever any of the three changes, so an Extrude & Bevel in a mixed
selection that had no custom bevel takes the whole bevel.
This commit is contained in:
dotCooCoo
2026-11-12 19:25:30 -08:00
parent 9544d89896
commit 4a212fdbd6
6 changed files with 104 additions and 12 deletions
+3 -1
View File
@@ -3529,7 +3529,9 @@ returns each bevel's `name` and `points`, the `file` path, the `skipped` symbols
and store it as `bevel: "custom"` with `bevelName` and `bevelProfile`, a copy of the points (`[[x, y], …]`, 2 to 64
shares 0..1 of the width and height from `[0, 0]` to `[1, 1]`), so the document draws the bevel without the file. An
unknown name, `custom` without `bevelProfile`, points that do not run from `[0, 0]` to `[1, 1]` within 0..1, or a
`bevelName` that is not a string is refused and the document is not changed. The help page
`bevelName` that is not a string is refused and the document is not changed. The command's journal entry records the
points as `savedBevel`, and `savedBevel` given with `{"custom": name}` is used in place of the file's points, so a
replay draws the same bevel after the file changes or drops the name. The help page
[Add custom bevel paths](https://helpx.adobe.com/illustrator/desktop/special-effects-styles/create-3d-graphics/add-custom-bevel-paths.html)
describes custom bevels drawn as open paths and kept as symbols in a bevels document.