mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 18:32:23 +00:00
Live Paint: freeform point edits without a target leave the selection alone under the bucket
While the proxies show the colors the Live Paint Bucket paints with, `paint.freeform.get` and `paint.freeform.selectPoint` with an index find no freeform gradient. The point and line edits (`addPoint`, `setPoint`, `deletePoint`, `addLine`, `splitLine`) still edited the selected object's freeform gradient when they named no target. Those edits now report an error then, when no `ids`, `id` or `item` is given, as the other paint commands leave the selection alone. A bad `aligned` or `target` is still reported first. With a target they edit that object as before. `get` and `selectPoint` now say that the bucket's colors have no freeform points instead of suggesting `paint.editGradient`. The params text and docs/mcp.md describe the rule.
This commit is contained in:
+3
-1
@@ -4857,7 +4857,9 @@ already walks Image Trace. Short agent entry points:
|
||||
`tool.setOption {tool: "eyedropper", values: {stop: "livePaintBucket"}}`): the stop
|
||||
stays selected, and the click's `paint.sampleColor {color, stop}` recolors that stop of the bucket's gradient and
|
||||
leaves the selection's paint as it is. Once that stop is no longer selected (a Cmd/Ctrl-click selected another
|
||||
object), the next click ends the pick without sampling and switches back to the bucket.
|
||||
object), the next click ends the pick without sampling and switches back to the bucket. The bucket's colors have no
|
||||
freeform points: `paint.freeform.get`, and `paint.freeform.selectPoint` with an `index`, report an error, and so do
|
||||
the other `paint.freeform` commands without `ids`, `id` or `item`, which then leave the selection's gradient as it is.
|
||||
With the Live Paint Bucket selected and no drag in progress, Left and Right without Shift, Alt or Cmd/Ctrl (which
|
||||
keep their shortcuts) run `paint.setFill {swatch, ids: []}` (or
|
||||
`paint.setStroke` when the Stroke proxy is in front) with the color swatch before or after the active paint in the
|
||||
|
||||
Reference in New Issue
Block a user