Merge pull request #8969 from dotCooCoo/fix/live-paint-bucket-freeform-points

Live Paint: freeform point edits without a target leave the selection alone under the bucket
This commit is contained in:
BFlat
2026-11-22 10:50:38 +07:00
committed by GitHub
3 changed files with 63 additions and 10 deletions
+3 -1
View File
@@ -4878,7 +4878,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